public ActionResult LessonAttendence() { List <KeyValuePair <string, int> > statistic = SubjectsDB.GetLessonAttendence(); ViewBag.Statistic = statistic; return(View()); }
public JsonResult GetLessonAttendance() { List <KeyValuePair <string, int> > statistic = SubjectsDB.GetLessonAttendence(); return(Json(new { Lessons = statistic }, JsonRequestBehavior.AllowGet)); }