public IEnumerable <Agendamento> BuscarTodosOsAgendamento() { try { var todoAgendamento = repository.GetAll(); todoAgendamento = todoAgendamento.Include(x => x.Pacientes); return(todoAgendamento); } catch (Exception ex) { throw ex; } }