public ActionResult SubmitForm(ContactFormViewModel model) { var code = Request["g-recaptcha-response"]; if (!_captchaService.ValidateCode(code)) { ModelState.AddModelError("", "Invalid captcha"); } if (ModelState.IsValid) { _contactFormService.AddMessage(model); TempData["ContactSuccess"] = true; return(RedirectToCurrentUmbracoPage()); } return(CurrentUmbracoPage()); }