public static PostContent ToDto(Db.PostContent postContent)
{
return postContent == null ? null :
new PostContent
{
Id = postContent.PostContentId,
PostId = postContent.PostId,
Media = postContent.Media == null ? null : MediaMapper.ToDto(postContent.Media),
PostContentText = postContent.PostContentText,
PostContentTitle = postContent.PostContentTitle,
CreatedBy = postContent.CreatedBy,
CreatedDate = postContent.CreatedDate,
ModifiedBy = postContent.ModifiedBy,
ModifiedDate = postContent.ModifiedDate
};
}