Пример #1
0
 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());
 }
Пример #2
0
        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());
            }
        }
Пример #3
0
 public ActionResult CourseManagement()
 {
     return(View(CourseBL.DisplayAll()));
 }