Exemplo n.º 1
0
        public async Task AddToBalance()
        {
            BonusCardBalanceMovementApiModel bonusCardBalanceMovement = new BonusCardBalanceMovementApiModel();

            bonusCardBalanceMovement.CardNumber      = CardNumber;
            bonusCardBalanceMovement.NewBalance      = Convert.ToDecimal(AmountAdd);
            bonusCardBalanceMovement.WithdrawBalance = false;

            try
            {
                FullInfoBonusCard = await _apiHelper.CardBalanceMovement(bonusCardBalanceMovement);
                await LoadProducts();
            }
            catch (Exception)
            {
                //  ErrorMessage = ex.Message;
            }
        }