Example #1
0
        public StudentResultController()
        {
            gradeManager = new GradeManager();

            studentResultManager = new StudentResultManager();
            enrollManager        = new EnrollManager();
        }
Example #2
0
 public EnrollInCourseController()
 {
     departmentManager = new DepartmentManager();
     courseManager     = new CourseManager();
     studentManager    = new StudentManager();
     enrollManager     = new EnrollManager();
 }
        public ActionResult EnrollCourse(Enroll aEnroll)
        {
            EnrollManager  aEnrollManager  = new EnrollManager();
            StudentManager aStudentManager = new StudentManager();

            ViewBag.studentlist = aStudentManager.GetAllStudents();
            var courselist = aEnrollManager.GetAllEnrollsByRegNo(aEnroll.StudentRegNo);
            var check      = courselist.FirstOrDefault(a => a.CourseId == aEnroll.CourseId);

            var courselisttrue = aEnrollManager.GetAllEnrollsByRegNoTrue(aEnroll.StudentRegNo);
            var checktrue      = courselisttrue.FirstOrDefault(a => a.CourseId == aEnroll.CourseId);

            if (aEnroll.CourseId == 0)
            {
                ViewBag.message = "Select Course";
            }
            else
            {
                if (checktrue != null)
                {
                    ViewBag.message = "This Course Already Assigned";
                }
                else
                {
                    aEnrollManager.EnrollCourse(aEnroll);
                    ViewBag.message = "Course Enrolled Successfully";
                }
            }

            return(View(aEnroll));
        }
Example #4
0
 public StudentResultController()
 {
     gradeLetterManager   = new GradeLetterManager();
     studentManager       = new StudentManager();
     courseManager        = new CourseManager();
     studentResultManager = new StudentResultManager();
     enrollManager        = new EnrollManager();
 }
 public ResultController()
 {
     enrollManager    = new EnrollManager();
     resultManager    = new ResultManager();
     componentManager = new ComponentManager();
 }
 public ViewResultController()
 {
     enrollManager        = new EnrollManager();
     studentResultManager = new StudentResultManager();
 }
Example #7
0
 //
 // GET: /EnrollCourse/
 public EnrollCourseController()
 {
     StudentManager = new StudentManager();
     CourseManager  = new CourseManager();
     EnrollManager  = new EnrollManager();
 }
 public EnrollController()
 {
     enrollManager = new EnrollManager();
     courseManager = new CourseManager();
 }