public ActionResult GetAllVipService() { var allVipService = new Dictionary <string, string>(); using (var client = new ShopClient()) { var vipServiceIds = (client.GetBeautyProductIdsByCategoryId(67)).Result; if (vipServiceIds != null) { foreach (var item in vipServiceIds) { var product = (client.GetBeautyProductDetailByPid(item)).Result; allVipService[item] = product.ProductName; } } } return(Json(allVipService, JsonRequestBehavior.AllowGet)); }