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)); }
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)); }