Beispiel #1
0
        public ActionResult Edit(int id)
        {
            Student       student         = stdManagementService.GetById(id); //courseservice.GetById(id);
            List <Course> selectedcourses = (List <Course>)student.Courses;

            List <Course> courses = courseservice.GetAll();

            ViewBag.courses = new MultiSelectList(courses, "Id", "CourseName", selectedcourses.Select(x => x.Id).ToArray());

            return(View(StudentVM.ToStudentVM(student)));
        }
Beispiel #2
0
        public ActionResult Details(int id)
        {
            Student student = stdManagementService.GetById(id); //courseservice.GetById(id);

            return(View(StudentVM.ToStudentVM(student)));
        }