Update the repository pattern
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using skydiveLogs_api.Business.Interface;
|
||||
using skydiveLogs_api.Model;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using skydiveLogs_api.Business.Interface;
|
||||
using skydiveLogs_api.Model;
|
||||
using skydiveLogs_api.Data.Interface;
|
||||
|
||||
|
||||
namespace skydiveLogs_api.Business
|
||||
{
|
||||
public class JumpTypeService : IJumpTypeService
|
||||
@@ -25,12 +27,12 @@ namespace skydiveLogs_api.Business
|
||||
|
||||
public IEnumerable<JumpType> GetAllJumpTypes()
|
||||
{
|
||||
return _jumpTypeRepository.GetAllJumpTypes();
|
||||
return _jumpTypeRepository.GetAll();
|
||||
}
|
||||
|
||||
public JumpType GetJumpTypeById(int id)
|
||||
{
|
||||
return _jumpTypeRepository.GetJumpTypeById(id);
|
||||
return _jumpTypeRepository.GetById(id);
|
||||
}
|
||||
|
||||
public void UpdateJumpType(int id, JumpType value)
|
||||
|
||||
Reference in New Issue
Block a user