Add AutoMapper and update the interface of business services
This commit is contained in:
18
Back/skydiveLogs-api/Mapper/ModelProfile.cs
Normal file
18
Back/skydiveLogs-api/Mapper/ModelProfile.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace skydiveLogs_api.Mapper
|
||||
{
|
||||
public class ModelProfile : Profile
|
||||
{
|
||||
public ModelProfile()
|
||||
{
|
||||
CreateMap<DataContract.JumpReq, Model.Jump>();
|
||||
CreateMap<DataContract.JumpTypeReq, Model.JumpType>();
|
||||
CreateMap<DataContract.AircraftReq, Model.Aircraft>();
|
||||
CreateMap<DataContract.DropZoneReq, Model.DropZone>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user