Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Configurations / Mapping / CommentMappings.cs
blob: 394490e98cb90bab75cdb6d5ea6d144f0dee0029 (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.Post.Comment;
using DevHive.Web.Models.Post.Comment;

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