public IActionResult Put(EventoDto evento) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } eventoService.Edit(evento); return(Ok(evento)); } catch (Exception) { throw; } }