コード例 #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();
     }
 }
コード例 #2
0
 public void DeleteComment(Comment comment)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public void AttachComment(Comment comment)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public void AttachComment(Comment comment)
 {
     throw new NotImplementedException();
 }
コード例 #5
0
 public void DeleteComment(Comment comment)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
ファイル: FeedbackService.cs プロジェクト: arbium/democratia2
 public static void DetachComment(Comment comment)
 {
     _feedbackSystemService.AttachComment(comment);
 }