Reputation: 43
I am trying to validate Google Recaptcha.
At the time of validating I am getting the error:
The Name Recaptcha does not exist in the current context.
[HttpPost]
public ActionResult Submit()
{
if (ReCaptcha.Validate(privateKey: "<private key>"))
{
return Content("Valid Captcha");
}
else
{
return Content("InValid Captcha");
}
}
Upvotes: 0
Views: 1157