public PartialViewResult MenuPrice(int ctrId, string url, int cateId = 0) { var model = new ModelCategoryItem { CtrId = ctrId }; var item = _sysbl.GetKey(ctrId); var id = item != null?int.Parse(item.Value) : 0; model.PageId = id; if (Request["doAction"] == "setting") { model.ListItem = _bl.GetChildCategories(); return(PartialView(model)); } model.CtrUrl = url; model.ListItem = _bl.GetCategories(id); ViewBag.cateId = cateId; return(PartialView(model)); }