public ActionResult Index(int page = 1, string CodeName = "Danger") { var webType = Catesvc.GetWebType(); ViewData["WebType"] = webType.Rows; CodeName = Request.QueryString["webType"] ?? CodeName; var list = svc.PageList(page, 10, CodeName); ViewData["PageList"] = list; return(View()); }
public ActionResult CustomerList(string webType) { return(Json(csv.PageList(1, int.MaxValue, webType))); }