コード例 #1
0
        public JsonResult GetRatingOfClasses()
        {
            List <ClassForRating> classes = ClassesDB.GetRatingOfClasses();

            return(Json(new { Results = classes }, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult RatingOfClasses()
        {
            List <ClassForRating> classes = ClassesDB.GetRatingOfClasses();

            return(View(classes));
        }