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; }
public void AddComment(Comment comment) { Comments.Add(comment); }