mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
18 lines
478 B
C#
18 lines
478 B
C#
using AutoMapper;
|
|
using WotBlitzStatisticsPro.Common.Model;
|
|
using WotBlitzStatisticsPro.WgApiClient.Model;
|
|
|
|
namespace WotBlitzStatisticsPro.Logic.Mappers
|
|
{
|
|
public class ClanSearchResponseProfile: Profile
|
|
{
|
|
public ClanSearchResponseProfile()
|
|
{
|
|
CreateMap<WotClanListResponse, ClanSearchResponseItem>()
|
|
.ForMember(
|
|
d => d.ClanId,
|
|
o => o.MapFrom(s => s.ClanId ?? -1));
|
|
|
|
}
|
|
}
|
|
} |