//public PartialViewResult ProductInCategory(int ctrId, string url, int cateId = 0) //{ // var temp = _bl.GetProductId(cateId); // var lstString = string.Join(",", temp.ListCategoryItem.Select(c => c.ID)); // var lst = FDIUtils.StringToListInt(lstString); // var model = _bl.GetListCateId(lst, cateId); // return PartialView(model); //} public PartialViewResult ProductHot(int ctrId, string url) { var model = new ModelCategoryItem { CtrId = ctrId, CtrUrl = url }; model.ListItem = _categoryBl.GetlistCateShowhome((int)ModuleType.Product); return(PartialView(model)); }
public PartialViewResult NewsHot(int ctrId, string url) { var model = new ModelCategoryItem { CtrId = ctrId, CtrUrl = url }; if (Request["doAction"] == "setting") { var key = _sysbl.GetKey(ctrId); model.PageId = key != null?int.Parse(key.Value) : 0; model.ListItem = _menuBl.GetChildCategories((int)ModuleType.News); return(PartialView(model)); } model.ListItem = _categoryBl.GetlistCateShowhome((int)ModuleType.News); return(PartialView(model)); }