Beispiel #1
0
 public long GetTicketCount() => TicketRepo.Count(x => true);
 /*
  * private bool CompareDate(bool compare, DateTime baseTime, DateTime isLower) {
  *  if (!compare)
  *      return true;
  *
  *  return baseTime > isLower;
  * }
  */
 // x => CompareDate(UseBeginDate, x.DateReported, BeginDate) && CompareDate(UseEndDate, EndDate, x.DateReported)
 public long GetTicketCount() => ticketRepo.Count(x =>
                                                  (!UseBeginDate || x.DateReported > BeginDate) &&
                                                  (!UseEndDate || x.DateReported < EndDate)
                                                  );