Example #1
0
		public Group FindById(int id)
		{
			SharePointListProvider provider = new SharePointListProvider(ForumApplication.Instance.SpWeb);
			SharePointListItem listItem = provider.GetListItembyID(ForumConstants.Lists_Groups, id);
			Group group = new Group();
			group.Id = listItem.Id;
			group.Name = listItem["Title"];
			return group;
		}
Example #2
0
        public Group FindById(int id)
        {
            SharePointListProvider provider = new SharePointListProvider(ForumApplication.Instance.SpWeb);
            SharePointListItem     listItem = provider.GetListItembyID(ForumConstants.Lists_Groups, id);
            Group group = new Group();

            group.Id   = listItem.Id;
            group.Name = listItem["Title"];
            return(group);
        }
Example #3
0
        public Category GetById(int id)
        {
            SharePointListItem currentItem = provider.GetListItembyID(ForumConstants.Lists_Category, id);

            return(CategoryMapper.CreateDomainObject(currentItem));
        }