Esempio n. 1
0
        public ActionResult Index()
        {
            ViewBag.Title = "Home Page";
            _schedulerManager.SetWPIntService(getCurrentService());
            Dictionary <string, long> statistics = _schedulerManager.GetStatistics();

            ViewBag.Services       = _wpIntServiceManager.GetServices().Keys.ToList();
            ViewBag.CurrentService = HttpContext.Request.Cookies["service"].Value;
            return(View(StatisticSort.SortName(statistics)));
        }
Esempio n. 2
0
        public ActionResult SortStatistics(string typeSort)
        {
            _schedulerManager.SetWPIntService(getCurrentService());
            Dictionary <string, long> statistics = _schedulerManager.GetStatistics();

            switch (typeSort)
            {
            case "byName":
                return(PartialView("TableView", StatisticSort.SortName(statistics)));

            case "byTime":
                return(PartialView("TableView", StatisticSort.SortByTime(statistics)));

            default:
                return(PartialView("TableView", statistics));
            }
        }