Esempio n. 1
0
        public decimal Bill()
        {
            var bal = Balance;

            _discountCardRepository.Add(_customerId, bal);

            _customerId   = Guid.Empty;
            _shoppingCart = new Dictionary <string, ShoppingCartItem>();
            return(bal);
        }
Esempio n. 2
0
 public async Task AddAndSave(DiscountCard card)
 {
     _card.Add(card);
     await _card.Save();
 }