Exemplo n.º 1
0
        public IActionResult Delete(string id)
        {
            var game  = this.gameService.GetGameById(id);
            var model = new GameListingModel
            {
                Name     = game.Name,
                Id       = game.Id,
                ModCount = game.ModCount,
            };

            return(this.View(model));
        }
Exemplo n.º 2
0
        public IActionResult Delete(GameListingModel model)
        {
            this.gameService.DeleteGame(model.Id);

            return(this.RedirectToAction("GameList"));
        }