Exemplo n.º 1
0
 public VoteModel(Vote vote)
 {
     Id = vote.Id;
     AuthorId = vote.AuthorId;
     ArticleId = vote.ArticleId;
     Value = vote.Value;
     this.Author = vote.User.Username;
 }
 public VoteDetails(Vote vote)
     : base(vote)
 {
     this.Article = vote.Article;
     this.User = vote.User;
 }