public PartialViewResult ProductList(int Cid, ProductRecType RecType = 4, int Top = 10, string viewName = "_ProductList") { Maticsoft.Model.Shop.Products.CategoryInfo info = Maticsoft.BLL.Shop.Products.CategoryInfo.GetAllCateList().FirstOrDefault<Maticsoft.Model.Shop.Products.CategoryInfo>(c => c.CategoryId == Cid); if (info != null) { ((dynamic) base.ViewBag).CategoryName = info.Name; } List<Maticsoft.Model.Shop.Products.ProductInfo> model = this.productBll.GetProductRecList(RecType, Cid, Top); return this.PartialView(viewName, model); }
public PartialViewResult ProductList(int Cid, ProductRecType RecType = 4, int Top = 10, string viewName = "_ProductList") { List<Maticsoft.Model.Shop.Products.ProductInfo> model = this.productBll.GetProductRecList(RecType, Cid, Top); return this.PartialView(viewName, model); }
public PartialViewResult ProductRec(ProductRecType Type = 0, int Cid = 0, int Top = 5, string ViewName = "_ProductRec") { List<Maticsoft.Model.Shop.Products.ProductInfo> model = this.productBll.GetProductRecList(Type, Cid, Top); return this.PartialView(ViewName, model); }