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

namespace DevHive.Web.Configurations.Mapping
{
    public class LanguageMappings : Profile
	{
		public LanguageMappings()
		{
			CreateMap<LanguageWebModel, LanguageServiceModel>();
			CreateMap<UpdateLanguageWebModel, LanguageServiceModel>();
			CreateMap<LanguageServiceModel, LanguageWebModel>();
			CreateMap<LanguageWebModel, UpdateLanguageServiceModel>();
		}
	} 
}