Пример #1
0
        public ActionResult CardsSell(DateTime startDate, DateTime endDate)
        {
            ViewBag.StartDate = startDate;
            ViewBag.EndDate   = endDate;

            ReportService rs        = new ReportService();
            var           cardsSell = rs.CardsSell(startDate, endDate);

            return(View(cardsSell));
        }
Пример #2
0
        public ActionResult CardsSell()
        {
            ReportService rs = new ReportService();

            ViewBag.StartDate = new DateTime(DateTime.Now.Year, 1, 1);
            ViewBag.EndDate   = DateTime.Now.Date;

            var cardsSell = rs.CardsSell(new DateTime(DateTime.Now.Year, 1, 1), DateTime.Now.Date);

            return(View(cardsSell));
        }