public static CourseView CastFromCourseModel(NekoUchi.Model.Course course) { var courseView = new CourseView(); courseView.Author = course.Author; courseView.CourseName = course.Name; courseView.Description = course.Description; courseView.Identification = course.Identification; courseView.Lessons = GridLessonView.CastFromLessonModel(course.Lessons, course.Identification); courseView.Subscribed = SubscribersView.CastFromSubscribers(course.Subscribed); courseView.Statistics = CourseStatisticsView.CastStats(course.Statistics); return(courseView); }
public static CourseStatisticsView CastStats(NekoUchi.Model.CourseStatistics statistics) { var courseStats = new CourseStatisticsView(); return(courseStats); }