public ActionResult Result(int id = 0) { if (id == 0 || !Permission.PremissionNeed(Request, Response, Session, UserRank.TEACHER)) { return(null); } ViewBag.exam = ExamView.GetExamById(id); ViewBag.results = ResultView.GetResultByExam(id).ToList(); return(View()); }