Add the method "Get*ById" in the stack Business

This commit is contained in:
Sébastien André
2019-09-30 15:16:34 +02:00
parent ed3f7c42c5
commit c6c2777c22
16 changed files with 74 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ namespace skydiveLogs_api.Business
public Aircraft GetAircraftById(int id)
{
throw new NotImplementedException();
return _aircraftRepository.GetAircraftById(id);
}
public IEnumerable<Aircraft> GetAllAircrafts()

View File

@@ -31,7 +31,7 @@ namespace skydiveLogs_api.Business
public DropZone GetDzById(int id)
{
throw new NotImplementedException();
return _dropZoneRepository.GetDzById(id);
}
public void UpdateDz(int id, DropZone dropZone)

View File

@@ -31,7 +31,7 @@ namespace skydiveLogs_api.Business
public Jump GetJumpById(int id)
{
throw new NotImplementedException();
return _jumpRepository.GetJumpById(id);
}
public void UpdateJump(int id, Jump jump)

View File

@@ -2,7 +2,6 @@
using skydiveLogs_api.Model;
using System;
using System.Collections.Generic;
using System.Text;
using skydiveLogs_api.Data.Interface;
namespace skydiveLogs_api.Business
@@ -31,7 +30,7 @@ namespace skydiveLogs_api.Business
public JumpType GetJumpTypeById(int id)
{
throw new NotImplementedException();
return _jumpTypeRepository.GetJumpTypeById(id);
}
public void UpdateJumpType(int id, JumpType value)