public Post(PostDto postDto) { PostId = postDto.PostId; UserBlogId = postDto.UserBlogId; Title = postDto.Title; Content = postDto.Content; PostType = (PostType)postDto.PostType; OriginalPostId = postDto.OriginalPostId; SharedFromPostId = postDto.SharedFromPostId; IsPrivate = postDto.IsPrivate; IsDraft = postDto.IsDraft; Timestamp = postDto.Timestamp; }
public void Post(PostDto post) { _postService.CreatePost(_postRepository, post); }