Пример #1
0
        public JsonResult GetOverviewPerMonth(string category)
        {
            Analyzer analyzer = new Analyzer();
            List<Result> entries = analyzer.GetResultsPerMonth(category);

            return Json(entries, JsonRequestBehavior.AllowGet);
        }
Пример #2
0
        public JsonResult GetPatterns()
        {
            Analyzer analyzer = new Analyzer();
            List<Result> categoryList = analyzer.GetPatternsWithCount();

            return Json(categoryList, JsonRequestBehavior.AllowGet);
        }
Пример #3
0
        public JsonResult GetListForCategoryAndMonth(string category, string month)
        {
            Analyzer analyzer = new Analyzer();
            List<Entry> entries = analyzer.GetListForCategoryAndMonth(category, Int32.Parse(month));

            return Json(entries, JsonRequestBehavior.AllowGet);
        }