public ForumCollection FindByCategoryId(int id) { SharePointListDescriptor descriptor = Provider.GetListItemsByField(ForumConstants.Lists_Forums, "CategoryID", id.ToString()); ForumCollection forumCollection = new ForumCollection(); foreach (SharePointListItem listItem in descriptor.SharePointListItems) { forumCollection.Add(ForumMapper.CreateDomainObject(listItem)); } return forumCollection; }
public ForumCollection GetAll() { SharePointListDescriptor descriptor = Provider.GetAllListItems(ForumConstants.Lists_Forums); ForumCollection forumCollection = new ForumCollection(); foreach (SharePointListItem listItem in descriptor.SharePointListItems) { forumCollection.Add(ForumMapper.CreateDomainObject(listItem)); } return forumCollection; }