mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
Nullable refernce types refactoring
This commit is contained in:
1 parent
e5c90e03d3
commit
e12734981b
85 files changed
+509
-351
No files matched your search
@@ -24,6 +24,12 @@ namespace WotBlitzStatisticsPro.Logic
|
||||
RequestLanguage language)
|
||||
{
|
||||
var response = await _wargamingApiClient.FindAccounts(accountNick, realmType, language);
|
||||
|
||||
if (response == null)
|
||||
{
|
||||
return new AccountsSearchResponse();
|
||||
}
|
||||
|
||||
return new AccountsSearchResponse
|
||||
{
|
||||
AccountsCount = response.Count,
|
||||
@@ -37,6 +43,12 @@ namespace WotBlitzStatisticsPro.Logic
|
||||
RequestLanguage language)
|
||||
{
|
||||
var response = await _wargamingApiClient.FindClans(searchString, realmType, language);
|
||||
|
||||
if (response == null)
|
||||
{
|
||||
return new ClanSearchResponse();
|
||||
}
|
||||
|
||||
return new ClanSearchResponse
|
||||
{
|
||||
ClansCount = response.Count,
|
||||
|
||||
Reference in new issue
Block a user