示例#1
0
        public List <CourseDTO> GetCourses()
        {
            var courses = new List <CourseDTO>();

            foreach (var item in msc.GetCourses())
            {
                var c = courseFactory.Create();

                c.AppId = item.Id;
                c.Name  = item.Name;

                courses.Add(c);
            }

            return(courses);
        }