Exemplo n.º 1
0
        public async Task <ActionResult> GetCaptcha()
        {
            var model = await _captchaFactory.CreateAsync();

            Response.Cookies.Append("Captcha", model.Answer);
            return(File(model.Image, model.ContentType));
        }
Exemplo n.º 2
0
        public async Task <CaptchaInfo> GetCaptcha()
        {
            var model = await _captchaFactory.CreateAsync();

            return(model);
        }