private CourseCategory[] InitCategories()
        {
            var initCategories = new CourseCategory[]
            {
                new CourseCategory()
                {
                    Title = "Android",
                    Description = "Android programming courses"
                },
                new CourseCategory()
                {
                    Title = "iOS",
                    Description = "iOS programming courses"
                },
                new CourseCategory()
                {
                    Title = "Windows Phone",
                    Description = "Windows Phone programming courses"
                }
            };

            return initCategories;
        }
示例#2
0
        private CourseCategory[] InitCategories()
        {
            var initCategories = new CourseCategory[]
            {
                new CourseCategory()
                {
                    Title       = "Android",
                    Description = "Android programming courses"
                },
                new CourseCategory()
                {
                    Title       = "iOS",
                    Description = "iOS programming courses"
                },
                new CourseCategory()
                {
                    Title       = "Windows Phone",
                    Description = "Windows Phone programming courses"
                }
            };

            return(initCategories);
        }