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; }
void FeedbackHandler_OnFeedbackSubmitted(object sender, FeedbackSubmittedEventArgs e) { e.Result.response = "Thank you for your submission"; }