public IActionResult Edit(Guid?id) { if (id == null) { return(NotFound()); } var eventoViewModel = _eventoAppService.ObterPorId(id.Value); eventoViewModel.Endereco = _eventoAppService.ObterEnderecoPorEventoId(eventoViewModel.Id); if (eventoViewModel == null) { return(NotFound()); } if (ValidarAutoridadeEvento(eventoViewModel)) { return(RedirectToAction("MeusEventos", _eventoAppService.ObterEventoPorOrganizador(OrganizadorId))); } return(View(eventoViewModel)); }