blob: f4197a05480f189429bc3c55523e20e8913925bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using DevHive.Data.Models;
using AutoMapper;
using DevHive.Services.Models.Comment;
namespace DevHive.Services.Configurations.Mapping
{
public class CommentMappings : Profile
{
public CommentMappings()
{
CreateMap<CommentServiceModel, Comment>();
CreateMap<Comment, CommentServiceModel>();
CreateMap<UpdateCommentServiceModel, Comment>();
CreateMap<GetByIdCommentServiceModel, Comment>();
CreateMap<Comment, GetByIdCommentServiceModel>();
}
}
}
|