public IActionResult AddToCart(int gameId, string returnUrl) { Game game = _repository.Find(gameId); if (game != null) { _cartProvider.AddItem(game, 1); } return(RedirectToAction("Index", new { returnUrl })); }