Beispiel #1
0
        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);
        }
Beispiel #2
0
        public static CourseStatisticsView CastStats(NekoUchi.Model.CourseStatistics statistics)
        {
            var courseStats = new CourseStatisticsView();

            return(courseStats);
        }