Esempio n. 1
0
 public void SubmitComment(int id, String email, String input)
 {
     if (input == "reset")
     {
         DynamicComment.Reset();
     }
     else
     {
         value = new DynamicComment(id, email, input);
         if (email == "Admin")
         {
             value.Status = "block";
         }
         value.Save();
     }
 }
Esempio n. 2
0
 // Delete All Comment in all page
 public ActionResult Reset()
 {
     DynamicComment.Reset();
     return(Redirect(Request.UrlReferrer.ToString()));
 }