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

namespace DevHive.Web.Configurations.Mapping
{
	public class RatingMappings : Profile
	{
		public RatingMappings()
		{
			CreateMap<CreateRatingWebModel, CreateRatingServiceModel>();

			CreateMap<ReadRatingServiceModel, ReadRatingWebModel>();

			CreateMap<UpdateRatingWebModel, UpdateRatingServiceModel>();
		}
	}
}