示例#1
0
 public void AddFeedback(string authorName, string message, FeedbackType type, string authorId, string email)
 {
     using (FeedbackModelContainer container = new FeedbackModelContainer())
     {
         Report report = new Report
         {
             AuthorName = authorName,
             Text       = message,
             Type       = type,
             AuthorId   = authorId,
             Email      = email
         };
         container.Reports.AddObject(report);
         container.SaveChanges();
     }
 }
示例#2
0
 public void AddFeedback(string authorName, string message, FeedbackType type, string authorId, string email)
 {
     using (FeedbackModelContainer container = new FeedbackModelContainer())
     {
         Report report = new Report
                             {
                                 AuthorName = authorName,
                                 Text = message,
                                 Type = type,
                                 AuthorId = authorId,
                                 Email = email
                             };
         container.Reports.AddObject(report);
         container.SaveChanges();
     }
 }
示例#3
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();
     }
 }
示例#4
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();
     }
 }