mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-12-06 16:22:34 +01:00
Encapsulated WG logic, added automapper, added realm and lang parameters
This commit is contained in:
1 parent
a4b3ae96fd
commit
ed770e8c30
10 files changed
+136
-24
No files matched your search
@@ -0,0 +1,17 @@
|
||||
using AutoMapper;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.WgApiClient.Model;
|
||||
|
||||
namespace WotBlitzStatistics.Logic.Mappers
|
||||
{
|
||||
public class AccountSearchResponseProfile : Profile
|
||||
{
|
||||
public AccountSearchResponseProfile()
|
||||
{
|
||||
CreateMap<WotAccountListResponse, AccountsSearchResponseItem>()
|
||||
.ForMember(
|
||||
d => d.AccountId,
|
||||
o => o.MapFrom(s => s.AccountId.Value));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user