예제 #1
0
        public IActionResult Create(JogoViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(viewModel));
            }
            _appService.Register(viewModel);

            if (IsValidOperation())
            {
                ViewBag.Sucesso = "Jogo Incluido!";
            }

            return(View(viewModel));
        }