public ActionResult PageSetEdit(Pan.Model.PageSet model) { Pan.BLL.PageSet ps = new PageSet(); ps.Update(model); return RedirectToAction("pageset"); }
public ActionResult PageSetModel(int id) { Pan.BLL.PageSet ps = new PageSet(); return View(ps.GetModel(id)); }
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; }