Changing DbSet<T>.Remove -> RemoveRange()

This commit is contained in:
Praburaj 2015-02-05 16:41:21 -08:00
parent 3e82cbc052
commit 0d673eafc9
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ namespace MusicStore.Models
public void EmptyCart()
{
var cartItems = _dbContext.CartItems.Where(cart => cart.CartId == ShoppingCartId).ToArray();
_dbContext.CartItems.Remove(cartItems);
_dbContext.CartItems.RemoveRange(cartItems);
}
public async Task<List<CartItem>> GetCartItems()