Add AutoMapper and update the interface of business services
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using skydiveLogs_api.Model;
|
||||
|
||||
namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IAircraftService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.AircraftResp> GetAllAircrafts();
|
||||
skydiveLogs_api.DataContract.AircraftResp GetAircraftById(int id);
|
||||
void AddNewAircraft(Aircraft aircraft);
|
||||
void UpdateAircraft(int id, Aircraft aircraft);
|
||||
void DeleteAircraftById(int id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using skydiveLogs_api.Model;
|
||||
|
||||
namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IDropZoneService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.DropZoneResp> GetAllDzs();
|
||||
skydiveLogs_api.DataContract.DropZoneResp GetDzById(int id);
|
||||
void DeleteDzById(int id);
|
||||
void UpdateDz(int id, DropZone dropZone);
|
||||
void AddNewDz(DropZone dropZone);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using skydiveLogs_api.Model;
|
||||
|
||||
namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IJumpService
|
||||
{
|
||||
IEnumerable<skydiveLogs_api.DataContract.JumpResp> GetAllJumps();
|
||||
skydiveLogs_api.DataContract.JumpResp GetJumpById(int id);
|
||||
void AddNewJump(Jump jump);
|
||||
void UpdateJump(int id, Jump jump);
|
||||
void DeleteJumpById(int id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using skydiveLogs_api.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
@@ -6,5 +7,14 @@ namespace skydiveLogs_api.Business.Interface
|
||||
{
|
||||
public interface IJumpTypeService
|
||||
{
|
||||
IEnumerable<JumpType> GetAllJumpTypes();
|
||||
|
||||
JumpType GetJumpTypeById(int id);
|
||||
|
||||
void AddNewJumpType(JumpType value);
|
||||
|
||||
void UpdateJumpType(int id, JumpType value);
|
||||
|
||||
void DeleteJumpTypeById(int id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user