public override ForumPost ConvertFromCore(ForumDiscussionPost sourceForumPost)
 {
     return(new ForumPost
     {
         PostId = sourceForumPost.Id,
         StatusId = sourceForumPost.StatusId,
         CategoryId = sourceForumPost.CategoryId,
         Title = sourceForumPost.Title,
         Description = sourceForumPost.Description,
         AddedBy = sourceForumPost.AddedBy,
         CreatedOn = sourceForumPost.CreatedOn,
         AddedByUser = sourceForumPost.User == null ? null : UserConverter.ConvertFromCore(sourceForumPost.User),
         Status = sourceForumPost.ForumDiscussionStatu == null ? null : ForumStatusConverter.ConvertFromCore(sourceForumPost.ForumDiscussionStatu),
         Category = sourceForumPost.ForumDiscussionCategory == null ? null : ForumCategoryConverter.ConvertFromCore(sourceForumPost.ForumDiscussionCategory)
     });
 }
 public override ForumPost ConvertFromCore(ForumUserHelpPost sourceForumPost)
 {
     return(new ForumPost
     {
         PostId = sourceForumPost.Id,
         StatusId = sourceForumPost.StatusId,
         CategoryId = sourceForumPost.CategoryId,
         Title = sourceForumPost.Title,
         Description = sourceForumPost.Description,
         AddedBy = sourceForumPost.AddedBy,
         CreatedOn = sourceForumPost.CreatedOn,
         Threads = sourceForumPost.ForumUserHelpThreads == null ? null : ThreadConverter.ConvertListFromCore(sourceForumPost.ForumUserHelpThreads.ToList()),
         AddedByUser = sourceForumPost.User == null ? null : UserConverter.ConvertFromCore(sourceForumPost.User),
         Status = sourceForumPost.ForumUserHelpStatu == null ? null : ForumStatusConverter.ConvertFromCore(sourceForumPost.ForumUserHelpStatu),
         Category = sourceForumPost.ForumUserHelpCategory == null ? null : ForumCategoryConverter.ConvertFromCore(sourceForumPost.ForumUserHelpCategory)
     });
 }