Example #1
0
 public IActionResult CheckoutConfirmed(int shoppingCartId, int itemId)
 {
     // A shopper checks out given the shopping cart Id and the itemId
     _repo.Checkout(shoppingCartId, itemId);
     // it redirects to the home index page
     return(RedirectToAction("Index", "Home"));
 }