public async Task <IActionResult> CadastrarAgendamento([FromBody] Agendamento agendamento) { try { await _agendamentoService.CadastrarAgendamento(agendamento); return(Ok()); } catch (Exception ex) { return(BadRequest(ex.Message)); } }