// GET: api/Products/5 public ProductItem Get(string id) { ProductItemPricing itemPrice = new ProductItemPricing(); ProductItem item = new ProductItem(); RedSkyApi redSkyApi = new RedSkyApi(); string name = redSkyApi.GetProductName(id); if (!string.IsNullOrEmpty(name)) { itemPrice = _Context.GetProductPrice(id); item.id = UInt64.Parse(id); item.name = name; item.current_price = itemPrice.current_price; } return(item); }