aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Configurations/Mapping/CommentMappings.cs
blob: f903128f02fd986df42ea3fa2ffc42a920d21dce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using DevHive.Data.Models;
using AutoMapper;
using DevHive.Services.Models.Post.Comment;
using DevHive.Common.Models.Misc;

namespace DevHive.Services.Configurations.Mapping
{
	public class CommentMappings : Profile
	{
		public CommentMappings()
		{
			CreateMap<CommentServiceModel, Comment>();
			CreateMap<Comment, CommentServiceModel>();
			CreateMap<UpdateCommentServiceModel, Comment>();
			CreateMap<IdModel, Comment>();
			CreateMap<Comment, IdModel>();
		}
	}
}