Exemplo n.º 1
0
        public CourseModel ToCourseModel(Logic.Course course)
        {
            CourseModel courseModel = new CourseModel();

            courseModel.Id   = course.Id;
            courseModel.Name = course.Name;

            return(courseModel);
        }
Exemplo n.º 2
0
        public Logic.Course ToCourse(CourseModel courseModel)
        {
            Logic.Course course = new Logic.Course();

            course.Id   = courseModel.Id;
            course.Name = courseModel.Name;

            return(course);
        }
Exemplo n.º 3
0
 public CourseDTO(Logic.Course course)
 {
     this.Id   = course.Id;
     this.Name = course.Name;
 }