예제 #1
0
        public IActionResult AddGames(AddGameViewModel model)
        {
            Game game = new Game
            {
                Name        = model.GameName,
                Price       = model.Price,
                GameTag     = model.GameTag,
                Description = model.Description,
                ReleaseDate = model.ReleaseDate
            };

            Logic.AddGame(game);
            return(RedirectToAction("Index", "Home"));
        }