[Authorize] [HttpPost] [ValidateAntiForgeryToken] public IActionResult AddToCart(int itemNumber) { // do somthing here...