示例#1
0
 public PostViewModel()
 {
     Id          = -1;
     TimePosted  = DateTime.Today;
     Source      = new SourceViewModel();
     Content     = null;
     Attachments = null;
 }
示例#2
0
 public PostViewModel(Post post, Source source)
 {
     Id          = post.Id;
     TimePosted  = post.TimePosted;
     Source      = new SourceViewModel(source);
     Content     = post.Content;
     Attachments = post.Attachments;
 }