public JsonResult GetTestList(int subjectId) { ContextHandler DbHandler = new ContextHandler(); var tests = DbHandler.GetTestsBySubjectId(subjectId); return(Json(tests)); }