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