20 lines
736 B
C#
20 lines
736 B
C#
using AutoMapper;
|
|
|
|
namespace DamageAssesment.Api.Documents.Profiles
|
|
{
|
|
public class DocumentProfile : AutoMapper.Profile
|
|
{
|
|
public DocumentProfile()
|
|
{
|
|
CreateMap<Db.Document, Models.MultiLanDocument>().ForMember(dest => dest.LinkType,
|
|
opt => opt.MapFrom(src => src.LinkType.TypeText)); ;
|
|
CreateMap<Db.Document, Models.Document>();
|
|
CreateMap<Models.Document, Db.Document>();
|
|
CreateMap<Db.LinkType, Models.LinkType>();
|
|
CreateMap<Models.LinkType, Db.LinkType>();
|
|
CreateMap<Db.DocumentsTranslation, Models.DocumentsTranslation>();
|
|
CreateMap<Models.DocumentsTranslation, Db.DocumentsTranslation>();
|
|
}
|
|
}
|
|
}
|