Пример #1
0
        public ActionResult TruckingStatistics(DateTime?fromDate, DateTime?toDate)
        {
            ViewBag.fromDate = fromDate;
            ViewBag.toDate   = toDate;
            var truckingtopSaummary = TruckingHelper.GetTruckingTopByDate(fromDate, toDate);

            return(PartialView("~/Views/Trucking/_Widget.cshtml", truckingtopSaummary));
            //return View(operationStatistic);
        }
Пример #2
0
        public ActionResult Summary()
        {
            DateTime fromDate = DateTime.Now.AddDays(-7);
            DateTime toDate   = DateTime.Now.AddDays(1);

            //ViewBag.LatestOrders = TruckingHelper.GetTopNewFive();
            //return View();
            ViewBag.fromDate = fromDate;
            ViewBag.toDate   = toDate;
            ViewData["truckingtopSaummary"] = TruckingHelper.GetTruckingTopByDate(fromDate, toDate);

            return(View( ));
        }