public virtual ActionResult Callback() { var vm = new HomeReCaptchaViewModel() { SiteKey = this._settings.SiteKey, ApiUrl = this._settings.ApiUrl, }; return(this.View(vm)); }
public virtual async Task <ActionResult> Callback(HomeReCaptchaViewModel form) { var result = await this.GetResponseAsync(); var vm = form; vm.Success = result.Success; vm.ErrorCodes = result.ErrorCodes; return(View(vm)); }
public virtual async Task <ActionResult> Basic() { var vm = new HomeReCaptchaViewModel() { SiteKey = this._settings.SiteKey, ApiUrl = this._settings.ApiUrl, }; return(this.View(vm)); }