Exemplo n.º 1
0
            public IActionResult RemoveFromCart(int gameId, string returnUrl)
            {
                Game game = _repository.Find(gameId);

                if (game != null)
                {
                    _cartProvider.RemoveLine(game);
                }
                return(RedirectToAction("Index", new { returnUrl }));
            }