コード例 #1
0
        private static List <Log> GetLogs(string from = "", string to = "", Constants.PeriodDay?periodDay = Constants.PeriodDay.All)
        {
            var periodDayCondition = PeriodsDayCondition.Get(periodDay);

            return(_logsRepository
                   .GetLogsForPeriod(from.ToDate(DateTime.MinValue), to.ToDate(DateTime.Today).AddDays(1), periodDayCondition)
                   .ToList());
        }
コード例 #2
0
 private static List <Log> GetLogs(string from = "", string to = "")
 {
     return(_logsRepository
            .GetLogsForPeriod(from.ToDate(DateTime.MinValue), to.ToDate(DateTime.Today).AddDays(1))
            .ToList());
 }