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

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

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