Cleaned code
This commit is contained in:
@@ -14,21 +14,21 @@ public class EntityToDtoMappings : Profile
|
||||
{
|
||||
CreateMap<Book, GetBookDto>()
|
||||
.ForMember(
|
||||
dest => dest.AuthorFullName,
|
||||
opt =>
|
||||
opt.MapFrom(src =>
|
||||
dest => dest.AuthorFullName,
|
||||
opt =>
|
||||
opt.MapFrom(src =>
|
||||
src.Author!.FirstName + " " + src.Author.LastName)
|
||||
);
|
||||
);
|
||||
CreateMap<Book, GetBookDetailsDto>();
|
||||
|
||||
|
||||
CreateMap<Author, GetAuthorDto>();
|
||||
CreateMap<Author, GetAuthorDetailsDto>();
|
||||
|
||||
|
||||
CreateMap<Loan, GetLoanDto>();
|
||||
|
||||
CreateMap<Member, GetMemberDto>();
|
||||
|
||||
CreateMap<Member, GetMemberDto>();
|
||||
CreateMap<Member, GetMemberDetailsDto>();
|
||||
|
||||
|
||||
CreateMap<Review, GetReviewDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user