aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations/Mapping/CommentMappings.cs
blob: 5998e7a25b96e651016cd865de6ea000ab662511 (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>();
		}
	}
}