public IHttpActionResult ConsultasPeriodoPaciente(string cpf, string dateFrom, string dateTo) { var retorno = _agendaService.ConsultasPeriodoPaciente(cpf, dateFrom, dateTo); if (!retorno.Status) { return(new InvalidListMessageResult(retorno.Message)); } return(Ok(retorno)); }