示例#1
0
        private async Task LoadWallets()
        {
            var walletsList = await _walletEndPoint.GetAll();

            if (!(walletsList == null))
            {
                Wallets = new BindingList <WalletModel>(walletsList);
            }
            else
            {
                Wallets = new BindingList <WalletModel>();
            }
        }
示例#2
0
        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>();
            }
        }