public ActionResult Index(int id) { WebService.ProductItem item = service.GetProductDetail(StoreID, TokenKey, id); WebService.SearchResult relateProduct = service.SearchProduct(StoreID, TokenKey, item.CatID.ToString(), "0", "0", 0, int.MaxValue, 1, 5, "", SearchOrder.TimeDesc, 0, string.Empty); ViewData["relateProduct"] = relateProduct; ViewBag.Title = item.PrName; return(View(item)); }
public ActionResult Index(int id) { WebService.AnperoService sv = new WebService.AnperoService(); WebService.ProductItem item = sv.GetProductDetail(StoreID, TokenKey, id); WebService.SearchResult relateProduct = sv.SearchProduct(StoreID, TokenKey, item.CatID.ToString(), "", "", 0, 999999, 1, 5, "", SearchOrder.TimeDesc, 0, string.Empty); ViewData["relateProduct"] = relateProduct; ViewBag.Title = item.PrName; SetupCommonProduct(); return(View(item)); }