Ejemplo n.º 1
0
        public ActionResult List()
        {
            QRCode_Template_BLL bll = new QRCode_Template_BLL();
            var list = bll.GetList();

            return(View(list));
        }
Ejemplo n.º 2
0
        // 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));
        }