Пример #1
0
 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;
 }
Пример #2
0
 public void Post(PostDto post)
 {
     _postService.CreatePost(_postRepository, post);
 }