Пример #1
0
 public SimplePost(Database.Entity.Posts post)
 {
     ID           = post.ID;
     Title        = post.Title;
     Created      = post.Created.LocalDateTime;
     Author       = new Account(post.Author);
     LastEdit     = post.LastEdit == null ? (DateTime?)null : post.LastEdit.Value.LocalDateTime;
     RepliesCount = post.Replies.Count;
     Labels       = post.PostLabels?.Select(o => new Label(o.Label)).ToList();
 }
Пример #2
0
 public Post(Database.Entity.Posts post) : base(post)
 {
     Content = post.Content;
 }