aboutsummaryrefslogtreecommitdiff
path: root/src/Services/DevHive.Services/Configurations/Mapping/RatingMappings.cs
blob: 3ef7d33c199917fc64fdc917dc19b811fc2c0e3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using AutoMapper;
using DevHive.Data.Models;
using DevHive.Services.Models.Post.Rating;

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

			CreateMap<Rating, ReadRatingServiceModel>();

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