Пример #1
0
 public StudentCourseListDTO mapToStudentCourseListDTO(StudentCourseListDAO scl, StudentCourseListDTO sc)
 {
     sc.AppId     = scl.StudentCourseID;
     sc.courseID  = scl.courseID;
     sc.Name      = scl.Course.courseName + "_" + scl.Student.firstName + "_" + scl.Student.lastName;
     sc.StudentID = scl.studentID;
     sc.Active    = scl.active;
     return(sc);
 }
Пример #2
0
        public StudentCourseListDAO mapToStudentCourseListDAO(StudentCourseListDTO scl)
        {
            var sc = new StudentCourseListDAO();

            sc.courseID        = scl.courseID;
            sc.StudentCourseID = scl.AppId;
            sc.studentID       = scl.StudentID;
            sc.active          = scl.Active;

            return(sc);
        }
Пример #3
0
        public StudentCourseList MapToStudentCourseList(StudentCourseListDAO studentCourseList)
        {
            var scl = new StudentCourseList();

            scl.courseID        = studentCourseList.courseID;
            scl.StudentCourseID = studentCourseList.StudentCourseID;
            scl.studentID       = studentCourseList.studentID;
            scl.active          = studentCourseList.active;

            return(scl);
        }
Пример #4
0
        public StudentCourseListDAO MapToStudentCourseListDAO(StudentCourseList studentCourseList)
        {
            var scl = new StudentCourseListDAO();

            scl.Course          = new CourseMapper().MapToCourseDAO(studentCourseList.Course);
            scl.courseID        = studentCourseList.courseID;
            scl.Student         = new StudentMapper().MapToStudentDAO(studentCourseList.Student);
            scl.StudentCourseID = studentCourseList.StudentCourseID;
            scl.studentID       = studentCourseList.studentID;
            scl.Course          = new CourseMapper().MapToCourseDAO(studentCourseList.Course);
            scl.active          = studentCourseList.active;

            return(scl);
        }
Пример #5
0
        public StudentCourseListDAO mapToStudentCourseListDAO(StudentCourseListDTO scl, StudentCourseListDAO sc)
        {
            sc.courseID        = scl.courseID;
            sc.StudentCourseID = scl.AppId;
            sc.studentID       = scl.StudentID;
            sc.active          = scl.Active;

            return(sc);
        }
Пример #6
0
 bool IRegistrationService.insertStudentCourseList(StudentCourseListDAO scl)
 {
     return(data.insertStudentCourseList(new StudentCourseListMapper().MapToStudentCourseList(scl)));
 }