예제 #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();
     }
 }