Example #1
0
 public void AddFeedback()
 {
     var fb = new SupportFeedback();
       var guid = Guid.NewGuid();
       fb.UserEmail = guid.ToString() + "@email.com";
       fb.UserName = "******" + guid.ToString();
       fb.Message = "message" + guid.ToString();
       var nfb = SupportFacade.AddFeedback(fb);
       Assert.IsTrue(fb.Compare(nfb));
 }
Example #2
0
 public string AddFeedback(SupportFeedback fb)
 {
     try
       {
     SupportFacade.AddFeedback(fb);
       }
       catch(Exception e)
       {
     AssistLogger.Log<ExceptionHolder>(e);
       }
       return CommonResources.AddSupportFeedbackSuccess;
 }
Example #3
0
 protected void btnSend_Click(object sender, EventArgs e)
 {
     Page.Validate(ValidationGroupName);
       if (Page.IsValid == true)
       {
     var fb = new SupportFeedback()
     {
       UserEmail = txtEmail.Text,
       UserName = txtName.Text,
       Message = txtFeedback.Text
     };
     SupportFacade.AddFeedback(fb);
       }
 }
Example #4
0
 public static SupportFeedback AddFeedback(SupportFeedback fb)
 {
     return new SupportFeedback().Load<SupportFeedback>(
     SupportDataAdapter.AddFeedback(fb));
 }