public CourseModel ToCourseModel(Logic.Course course) { CourseModel courseModel = new CourseModel(); courseModel.Id = course.Id; courseModel.Name = course.Name; return(courseModel); }
public Logic.Course ToCourse(CourseModel courseModel) { Logic.Course course = new Logic.Course(); course.Id = courseModel.Id; course.Name = courseModel.Name; return(course); }
public CourseDTO(Logic.Course course) { this.Id = course.Id; this.Name = course.Name; }