Beispiel #1
0
 /// <summary>
 /// Creates a new basket for the user
 /// </summary>
 /// <param name="user">the current user</param>
 public async Task MakeNewBasket(ApplicationUser user)
 {
     Basket newBasket = new Basket
     {
         UserID     = user.Id,
         IsComplete = false
     };
     await _context.AddBasketAsync(newBasket);
 }