public IActionResult AppCaptcha(ProductViewModel model) { try { if (!CaptchaHelper.IsValidCaptcha(model.CaptchaToken, model.CaptchaId, model.CaptchaText)) { model.Message = "Please enter the security code as a number."; return(View(model)); } model.Message = "Successfully."; return(View(model)); } catch (Exception) { model.Message = "Failed."; return(View(model)); } }