This commit is contained in:
15
HanyadikHetVan/Profiles/PurseProfile.cs
Normal file
15
HanyadikHetVan/Profiles/PurseProfile.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using AutoMapper;
|
||||
using HanyadikHetVan.Data.Entities;
|
||||
using HanyadikHetVan.DTO;
|
||||
|
||||
namespace HanyadikHetVan.Profiles
|
||||
{
|
||||
public class PurseProfile : Profile
|
||||
{
|
||||
public PurseProfile()
|
||||
{
|
||||
CreateMap<Purse, PurseDTO>();
|
||||
CreateMap<PurseDTO, Purse>().ForMember(x => x.User, options => options.Ignore()).ForMember(x => x.UserId, options => options.Ignore()).ForMember(x => x.Id, options => options.Ignore());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user