public static PostLike ToDto(Db.PostLike postLike)
{
return postLike == null ? null :
new PostLike
{
PostId = postLike.PostId,
PostLikeId = postLike.PostLikeId,
UserId = postLike.UserId,
CreatedBy = postLike.CreatedBy,
CreatedDate = postLike.CreatedDate,
ModifiedBy = postLike.ModifiedBy,
ModifiedDate = postLike.ModifiedDate
};
}