public ActionResult FormPost(ContactModel model) { #region GoogleControl var response = Request["g-recaptcha-response"]; ReCaptchaModel googleresult = ReCaptcha.Check(response); if (!googleresult.Result) { return(Json(new { data = googleresult.Message, success = false, }, JsonRequestBehavior.AllowGet)); } #endregion if (!ModelState.IsValid) { //return error } //return success return(View()); }