public GenericoAgendamentoCommandResult PendentePagamentoAgendamento([FromBody] PendentePagamentoAgendamentoCommand command, [FromServices] AgendamentoHandler handler)
 {
     return((GenericoAgendamentoCommandResult)handler.Handle(command));
 }
 public GenericoAgendamentoCommandResult FinalizarAGendamento([FromBody] FinalizarAgendamentoCommand command, [FromServices] AgendamentoHandler handler)
 {
     return((GenericoAgendamentoCommandResult)handler.Handle(command));
 }