aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Services/Configurations/Mapping/UserCollectionMappings.cs
blob: 7a773e8a4618b8e6dc70aa76bc26d511d0908e07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using AutoMapper;
using DevHive.Data.Models;
using DevHive.Services.Models.Identity.User;

namespace DevHive.Services.Configurations.Mapping
{
	public class UserCollectionMappings : Profile
	{
		public UserCollectionMappings()
		{
			CreateMap<UpdateUserCollectionServiceModel, User>();
			CreateMap<UpdateUserCollectionServiceModel, Role>();
			CreateMap<UpdateUserCollectionServiceModel, Language>();
			CreateMap<UpdateUserCollectionServiceModel, Technology>();

			CreateMap<User, UpdateUserCollectionServiceModel>();
			CreateMap<Role, UpdateUserCollectionServiceModel>();
			CreateMap<Language, UpdateUserCollectionServiceModel>();
			CreateMap<Technology, UpdateUserCollectionServiceModel>();
		}
	}
}