public ActionResult SecurityCode() { string oldcode = TempData["SecurityCode"] as string; string code = VerificationHelper.CreateRandomCode(); TempData["SecurityCode"] = code; return(File(VerificationHelper.CreateValidateGraphic(code), "image/Jpeg")); }