private void UpdateMessageBoardVisibility(Guid messageBoardID, bool isVisible) { MessageBoardDA mDA = new MessageBoardDA(); MessageBoard messageBoard = mDA.GetByID(messageBoardID); if (messageBoard.IsVisible != isVisible) { messageBoard.IsVisible = isVisible; mDA.Update(messageBoard); } }
public List <FeedPostComment> GetCommentsForMedia(Guid messageBoardID) { List <FeedPostComment> comments = new List <FeedPostComment>(); MessageBoard mb = new MessageBoardDA().GetByID(messageBoardID); foreach (MessageBoardMessage m in mb.Messages) { comments.Add( new FeedPostComment { PostedDateTime = m.PostedDateTime, Message = m.Message, UserID = m.UserID }); } return(comments); }