public async Task <IActionResult> Post([FromBody] EventoViewModel model) { try { var evento = eventoAppService.Add(model); if (await eventoAppService.SaveChangesAsync()) { return(Created($"/api/evento/{model.Id}", model)); } } catch (System.Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Banco de dados Falhou!")); } return(BadRequest()); }