private static void CreateWelcomeCategories(ObjectRepository repository, Blog blog) { repository.CreateLinkCategory(new LinkCategory { Title = "Programming", Description = "Blog posts related to programming", BlogId = blog.Id, IsActive = true, CategoryType = CategoryType.PostCollection, }); repository.CreateLinkCategory(new LinkCategory { Title = "Personal", Description = "Personal musings, random thoughts.", BlogId = blog.Id, IsActive = true, CategoryType = CategoryType.PostCollection }); }
static int[] CreateSomePostCategories(ObjectRepository repository) { var categoryIds = new int[3]; categoryIds[0] = repository.CreateLinkCategory(CreateCategory("My Favorite Feeds", "Some of my favorite RSS feeds", CategoryType.PostCollection, true)); categoryIds[1] = repository.CreateLinkCategory(CreateCategory("Google Blogs", "My favorite Google blogs", CategoryType.PostCollection, true)); categoryIds[2] = repository.CreateLinkCategory(CreateCategory("Microsoft Blogs", "My favorite Microsoft blogs", CategoryType.PostCollection, false)); return categoryIds; }