예제 #1
0
        public async Task <IActionResult> VerifyAsync(string key, string code)
        {
            CaptchaItem item = await _captchaService.GetItemAsync(key);

            return(Json(new
            {
                Code = item == null ? false : item.Code == code
            }));
        }