Files

16 lines
524 B
C#

using System.Collections.Generic;
using AutoMapper;
using WotBlitzStatisticsPro.DataAccess.Model;
namespace WotBlitzStatisticsPro.Logic.Mappers
{
public class DictionaryLanguageMapper : Profile
{
public DictionaryLanguageMapper()
{
CreateMap<KeyValuePair<string, string>, LanguageDictionary>()
.ForMember(dest => dest.LanguageId, op => op.MapFrom(s => s.Key))
.ForMember(dest => dest.LanguageName, op => op.MapFrom(svm => svm.Value));
}
}
}