Add AutoMapper and update the interface of business services

This commit is contained in:
Sébastien André
2019-09-25 19:38:52 +02:00
parent cb105c13af
commit a2718e4ba7
17 changed files with 102 additions and 20 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}