public ActionResult List() { QRCode_Template_BLL bll = new QRCode_Template_BLL(); var list = bll.GetList(); return(View(list)); }
// GET: Test public ActionResult Index() { QRCode_Template_BLL bll = new QRCode_Template_BLL(); var list = bll.GetList(); WebClient wc = new WebClient(); foreach (var templatese in list) { wc.DownloadFile("http://7xofy9.com2.z0.glb.qiniucdn.com/" + templatese.ExampleUrl, @"D:/wenjian/img/" + templatese.ExampleUrl); wc.DownloadFile("http://7xofy9.com2.z0.glb.qiniucdn.com/" + templatese.TemplatePSDUrl, @"D:/wenjian/img/" + templatese.TemplatePSDUrl); } return(View()); }
public ActionResult SelectTempLate() { if (Session["CurrentAccountID"] == null) { return(RedirectToAction("Select", "OfficialAccount", new { Area = "Admin" })); } Guid AccountID = Guid.Parse(Session["CurrentAccountID"].ToString()); ViewBag.AccountID = AccountID; QRCode_Template_BLL bll = new QRCode_Template_BLL(); List <QRCode_Template> list = bll.GetList().OrderBy(a => a.TemplateName).ToList(); return(View(list)); }