Update BloggingApplicationAutoMapperProfile.cs

pull/1286/head
Yunus Emre Kalkan 6 years ago
parent b463d797fe
commit e40e9335a3

@ -7,6 +7,7 @@ using Volo.Blogging.Comments.Dtos;
using Volo.Blogging.Posts;
using Volo.Blogging.Tagging;
using Volo.Blogging.Tagging.Dtos;
using Volo.Blogging.Users;
namespace Volo.Blogging
{
@ -15,6 +16,7 @@ namespace Volo.Blogging
public BloggingApplicationAutoMapperProfile()
{
CreateMap<Blog, BlogDto>();
CreateMap<BlogUser, BlogUserDto>();
CreateMap<Post, PostWithDetailsDto>().Ignore(x=>x.Writer).Ignore(x=>x.CommentCount).Ignore(x=>x.Tags);
CreateMap<Comment, CommentWithDetailsDto>().Ignore(x => x.Writer);
CreateMap<Tag, TagDto>();

Loading…
Cancel
Save