private async Task LoadWallets() { var walletsList = await _walletEndPoint.GetAll(); if (!(walletsList == null)) { Wallets = new BindingList <WalletModel>(walletsList); } else { Wallets = new BindingList <WalletModel>(); } }
private async Task LoadWallets() { var walletsList = await _walletEndPoint.GetAll(); if (!(walletsList == null)) { var wallets = _mapper.Map <List <WalletDisplayModel> >(walletsList); Wallets = new BindingList <WalletDisplayModel>(wallets); } else { Wallets = new BindingList <WalletDisplayModel>(); } }