From be43dda0f524c21f4cc3529365108037137d27a7 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Thu, 3 Mar 2016 13:59:15 -0800 Subject: [PATCH] Minor fix to async issue on empty cart --- src/MusicStore/Models/ShoppingCart.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MusicStore/Models/ShoppingCart.cs b/src/MusicStore/Models/ShoppingCart.cs index c06727a22e..80a09430bd 100644 --- a/src/MusicStore/Models/ShoppingCart.cs +++ b/src/MusicStore/Models/ShoppingCart.cs @@ -76,7 +76,7 @@ namespace MusicStore.Models return itemCount; } - public async void EmptyCart() + public async Task EmptyCart() { var cartItems = await _dbContext .CartItems @@ -147,7 +147,7 @@ namespace MusicStore.Models order.Total = orderTotal; // Empty the shopping cart - EmptyCart(); + await EmptyCart(); // Return the OrderId as the confirmation number return order.OrderId;