public ActionResult rateQuesTable(int cid = -1) { ViewBag.getCrs = CourseBL.DisplayAll(); ViewBag.getRateQues = submitBL.getRateQuestionVal(cid); ViewBag.getTitlesForCourse = submitBL.getTitlesForCourse(cid); ViewBag.getSumittionCount = submitBL.getSumittionCount(cid); return(View()); }
public ActionResult user(int id = -1) { if (Session["UserId"] == null) { return(RedirectToAction("LogIn")); } else { ViewBag.getCrs = CourseBL.DisplayAll(); ViewBag.Model = CourseBL.getCourseById(id); ViewBag.Doc = CourseBL.getInsByCid(id, "دكتور"); ViewBag.Assistant = CourseBL.getInsByCid(id, "معيد"); ViewBag.getSpe = CourseBL.GetSpecializationsByCid(id); ViewBag.getSec = SectionBL.DisplayAllSections(); ViewBag.getQues = SectionBL.DisplayAllQuestions(); ViewBag.SelectedItemDDL = id; // UserInfo u = new UserInfo(); //Session["UserId"] = u.userId; ViewBag.UserId = Session["userId"]; return(View()); } }
public ActionResult CourseManagement() { return(View(CourseBL.DisplayAll())); }