Files
WotBlitzStatisticsBlazor/WotBlitzStatisticsPro.Logic/Mappers/DictionaryLanguageMapper.cs
T

16 lines
524 B
C#
Raw Normal View History

2020-05-30 17:15:43 +02:00
using System.Collections.Generic;
using AutoMapper;
2020-06-24 12:19:03 +02:00
using WotBlitzStatisticsPro.DataAccess.Model;
2020-05-30 17:15:43 +02:00
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));
}
}
}