Exemple #1
0
 public AnswerPost(domain.AnswerPost answerPost)
 {
     this.Id          = answerPost.Id;
     this.CreatedDate = answerPost.CreatedDate;
     this.UpdatedDate = answerPost.UpdatedDate;
     this.MainPost    = new Post(answerPost.MainPost, true); //new Post { Id = answerPost.MainPost.Id };
     this.Answer      = new Post(answerPost.Answer, true);
 }
Exemple #2
0
 public AnswerPost(domain.AnswerPost answerPost, object user)
 {
     this.Id          = answerPost.Id;
     this.CreatedDate = answerPost.CreatedDate;
     this.UpdatedDate = answerPost.UpdatedDate;
     this.MainPost    = new Post(answerPost.MainPost, true); //new Post { Id = answerPost.MainPost.Id };
     this.Answer      = new Post(answerPost.Answer, true)
     {
         User = new User {
             Id = int.Parse(user.ToString())
         }
     };
 }