Пример #1
0
        public ActionResult PageSetEdit(Pan.Model.PageSet model)
        {
            Pan.BLL.PageSet ps = new PageSet();
            ps.Update(model);

            return RedirectToAction("pageset");
        }
Пример #2
0
        public ActionResult PageSetModel(int id)
        {
            Pan.BLL.PageSet ps = new PageSet();

            return View(ps.GetModel(id));
        }
Пример #3
0
        private void NewsListByType(string type)
        {
            Pan.BLL.PageSet ps = new PageSet();
            System.Data.DataRow dr;

            StringBuilder sql = new StringBuilder();
            sql.Append("select title,keywords,description from PageSet where [column]='");
            sql.Append(type);
            sql.Append("'");
            dr = ps.GetPSByCus(sql.ToString()).Tables[0].Rows[0];
            ViewBag.Title = dr[0];
            ViewBag.Keywords = dr[1];
            ViewBag.Description = dr[2];
            ViewBag.h3 = type;
        }