Add project files.
This commit is contained in:
16
ConstructorAppApi/Mapping/ServiceMapping.cs
Normal file
16
ConstructorAppApi/Mapping/ServiceMapping.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using AutoMapper;
|
||||
using ConstructorApp.DtoLayer.ServiceDto;
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorAppApi.Mapping
|
||||
{
|
||||
public class ServiceMapping : Profile
|
||||
{
|
||||
public ServiceMapping()
|
||||
{
|
||||
CreateMap<Service, ResultServiceDto>().ReverseMap();
|
||||
CreateMap<Service, GetServiceDto>().ReverseMap();
|
||||
CreateMap<Service, UpdateServiceDto>().ReverseMap();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user