public FeedbackResult SubmitFeedback(Feedback data)
 {
     if (OnFeedbackSubmitted == null)
         throw new NullReferenceException("OnFeedbackSubmitted event must be configured in Global.asax");
     FeedbackSubmittedEventArgs args = new FeedbackSubmittedEventArgs();
     OnFeedbackSubmitted(this, args);
     return args.Result;
 }
示例#2
0
 void FeedbackHandler_OnFeedbackSubmitted(object sender, FeedbackSubmittedEventArgs e)
 {
     e.Result.response = "Thank you for your submission";
 }