public IActionResult ThanksForPurchase() { User user = usersTable.GetUserByEmail(User.Identity.Name !) !; cartTable.DeleteItem(user.Email); ViewBag.User = user; ViewData["layout"] = "~/Views/Shared/_AuthorizedLayout.cshtml"; return(View()); }