public decimal Bill() { var bal = Balance; _discountCardRepository.Add(_customerId, bal); _customerId = Guid.Empty; _shoppingCart = new Dictionary <string, ShoppingCartItem>(); return(bal); }
public async Task AddAndSave(DiscountCard card) { _card.Add(card); await _card.Save(); }