I am trying to validate Google Recaptcha.
- I added the dll.
- Implemented the design.
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");
}
}