public IActionResult Reservar([FromBody] Reserva reserva) { try { ReservaService reservaService = new ReservaService(_context); reservaService.Salvar(reserva); reservaService.EnviarEmailReserva(reserva); return(Ok(reserva)); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }