aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
blob: a28ee164c16a18dac5c603459d8bb0115ba0e66a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>();
		}
	}
}