public static Expression <Func <Agendamento, bool> > ListarTodosAgendamentosPorStatusPagamentoPorCliente(EPagamentoStatus pagamentostatus, DateTime dataInicio, DateTime dataFim, Guid clienteId)
 {
     return(x => x.StatusPagamento == pagamentostatus &&
            x.ClienteId == clienteId &&
            (x.DataAgendamento.Date >= dataInicio.Date && x.DataAgendamento <= dataFim.Date));
 }
示例#2
0
 public IEnumerable <Agendamento> ListarTodosAgendamentosPorStatusPagamentoPorCliente(EPagamentoStatus pagamentostatus, DateTime dataInicio, DateTime dataFim, Guid clienteId)
 {
     return(_context.Agendamentos.Include(x => x.Procedimentos).AsNoTracking()
            .Where(AgendamentoQueries.ListarTodosAgendamentosPorStatusPagamentoPorCliente(pagamentostatus, dataInicio, dataFim, clienteId)));
 }