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

namespace DevHive.Web.Configurations.Mapping
{
    public class CommentMappings : Profile
	{
		public CommentMappings()
		{
			CreateMap<CommentWebModel, CommentServiceModel>();
			CreateMap<CommentWebModel, UpdateCommentServiceModel>();
			CreateMap<CommentServiceModel, CommentWebModel>();
			CreateMap<CommentWebModel, CommentServiceModel>();
			CreateMap<GetByIdCommentServiceModel, GetByIdCommentWebModel>();
		}
	} 
}