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