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); }
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); }
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); }
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); }
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); }
bool IRegistrationService.insertStudentCourseList(StudentCourseListDAO scl) { return(data.insertStudentCourseList(new StudentCourseListMapper().MapToStudentCourseList(scl))); }