Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Web / DevHive.Web / Configurations / Mapping / CommentMappings.cs
blob: b8d682910536ba3aa14a3924f428f006228ae522 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using AutoMapper;
using DevHive.Services.Models.Comment;
using DevHive.Web.Models.Comment;

namespace DevHive.Web.Configurations.Mapping
{
	public class CommentMappings : Profile
	{
		public CommentMappings()
		{
			CreateMap<CreateCommentWebModel, CreateCommentServiceModel>();
			CreateMap<UpdateCommentWebModel, UpdateCommentServiceModel>();

			CreateMap<ReadCommentServiceModel, ReadCommentWebModel>();
		}
	}
}