Esempio n. 1
0
 public static Comment CreateComment(Guid id, string content, User user)
 {
     var comment = new Comment()
     {
         Id = Guid.NewGuid(),
         Content = content,
         CreatedOn = DateTime.Now.ToUniversalTime(),
         CreatedBy_Id = user.Id,
         CreatedBy = user,
         Show = true
     };
     return comment;
 }
Esempio n. 2
0
 public void AddComment(Comment comment)
 {
     Comments.Add(comment);
 }