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()); }
private static List <Log> GetLogs(string from = "", string to = "") { return(_logsRepository .GetLogsForPeriod(from.ToDate(DateTime.MinValue), to.ToDate(DateTime.Today).AddDays(1)) .ToList()); }