Add AutoMapper config to convert the return data API
This commit is contained in:
@@ -7,10 +7,14 @@ namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IAircraftService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.AircraftResp> GetAllAircrafts();
|
||||
skydiveLogs_api.DataContract.AircraftResp GetAircraftById(int id);
|
||||
IEnumerable<Aircraft> GetAllAircrafts();
|
||||
|
||||
Aircraft GetAircraftById(int id);
|
||||
|
||||
void AddNewAircraft(Aircraft aircraft);
|
||||
|
||||
void UpdateAircraft(int id, Aircraft aircraft);
|
||||
|
||||
void DeleteAircraftById(int id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,10 +7,14 @@ namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IDropZoneService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.DropZoneResp> GetAllDzs();
|
||||
skydiveLogs_api.DataContract.DropZoneResp GetDzById(int id);
|
||||
IEnumerable<DropZone> GetAllDzs();
|
||||
|
||||
DropZone GetDzById(int id);
|
||||
|
||||
void DeleteDzById(int id);
|
||||
|
||||
void UpdateDz(int id, DropZone dropZone);
|
||||
|
||||
void AddNewDz(DropZone dropZone);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,10 +7,14 @@ namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IJumpService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.JumpResp> GetAllJumps();
|
||||
skydiveLogs_api.DataContract.JumpResp GetJumpById(int id);
|
||||
IEnumerable<Jump> GetAllJumps();
|
||||
|
||||
Jump GetJumpById(int id);
|
||||
|
||||
void AddNewJump(Jump jump);
|
||||
|
||||
void UpdateJump(int id, Jump jump);
|
||||
|
||||
void DeleteJumpById(int id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user