aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Configurations/Mapping/PostMappings.cs
blob: bc7bc060c5210c0252fc51075247f0c1363f10df (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.Post;
using DevHive.Web.Models.Post.Post;

namespace DevHive.Web.Configurations.Mapping
{
	public class PostMappings : Profile
	{
		public PostMappings()
		{
			CreateMap<CreatePostWebModel, CreatePostServiceModel>();
			CreateMap<UpdatePostWebModel, UpdatePostServiceModel>();

			CreateMap<ReadPostServiceModel, ReadPostWebModel>();
		}
	}
}