blob: 296704ef05a48cfb5e3b625d97ad91af64f9a695 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using AutoMapper;
using DevHive.Services.Models.Post.Comment;
using DevHive.Web.Models.Post.Comment;
namespace DevHive.Web.Configurations.Mapping
{
public class CommentMappings : Profile
{
public CommentMappings()
{
CreateMap<CreateCommentWebModel, CreateCommentServiceModel>();
CreateMap<UpdateCommentWebModel, UpdateCommentServiceModel>();
CreateMap<ReadCommentServiceModel, ReadCommentWebModel>()
.ForMember(dest => dest.IssuerFirstName, src => src.Ignore())
.ForMember(dest => dest.IssuerLastName, src => src.Ignore())
.ForMember(dest => dest.IssuerUsername, src => src.Ignore());
}
}
}
|