public IActionResult Create(JogoViewModel viewModel) { if (!ModelState.IsValid) { return(View(viewModel)); } _appService.Register(viewModel); if (IsValidOperation()) { ViewBag.Sucesso = "Jogo Incluido!"; } return(View(viewModel)); }