public ActionResult ValidateCode() { var image = Captcha.CreateAndSave(Session, "ForgetImg"); return(File(image.GetBuffer(), "image/jpeg")); }
// // GET: /ValidateCode/ public ActionResult Index() { var ms = Captcha.CreateAndSave(Session); return(File(ms.GetBuffer(), "image/JPEG")); }