public ContentResult GetReport(int reportId, ReportDate reportDate, string customer, bool?nonCash) { var dates = ReporDateRanges.GetDates(reportDate); dates.From = DateTime.SpecifyKind(dates.From, DateTimeKind.Utc); dates.To = DateTime.SpecifyKind(dates.To, DateTimeKind.Utc); return(GetReportDates(reportId, dates.From, dates.To, customer, nonCash)); } // GetReport
} // DownloadReportDates public FileResult DownloadReport(int reportId, ReportDate reportDate, string customer, bool?nonCash) { var dates = ReporDateRanges.GetDates(reportDate); return(DownloadReportDates(reportId, dates.From, dates.To, customer, nonCash)); } // DownloadReport