public ActionResult form1(Form1VM model) { if (!ModelState.IsValid) { // TODO: Captcha validation failed, show error message return(View(model)); } else { // TODO: captcha validation succeeded; execute the protected action // Reset the captcha if your app's workflow continues with the same view MvcCaptcha.ResetCaptcha("ExampleCaptcha"); return(Content("captcha is Correct")); } }
public ActionResult form1() { var model = new Form1VM(); return(View(model)); }