Exemplo n.º 1
0
        public MessageCollection GetAll()
        {
            MessageCollection        messages  = new MessageCollection();
            SharePointListProvider   provider  = new SharePointListProvider(ForumApplication.Instance.SpWeb);
            SharePointListDescriptor postItems = provider.GetAllListItems(ForumConstants.Lists_Posts);

            foreach (SharePointListItem postItem in postItems.SharePointListItems)
            {
                messages.Add(MessageMapper.CreateDomainObject(postItem));
            }
            return(messages);
        }