Exemplo n.º 1
0
 public void Comment(Guid reportId, string authorName, string message, string email, string authorId)
 {
     using (FeedbackModelContainer container = new FeedbackModelContainer())
     {
         Comment comment = new Comment
                              {
                                  ReportId = reportId,
                                  AuthorName = authorName,
                                  Text = message,
                                  Email = email,
                                  AuthorId = authorId
                              };
         container.Comments.AddObject(comment);
         container.SaveChanges();
     }
 }
 public void DeleteComment(Comment comment)
 {
     throw new NotImplementedException();
 }
 public void AttachComment(Comment comment)
 {
     throw new NotImplementedException();
 }
 public void AttachComment(Comment comment)
 {
     throw new NotImplementedException();
 }
 public void DeleteComment(Comment comment)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public static void DetachComment(Comment comment)
 {
     _feedbackSystemService.AttachComment(comment);
 }