public Item(ShoppingCart.Line line, UrlHelper urlHelper) { Product = new ResourceReference(urlHelper.GetProductDetailsUri(line.ProductId), line.ProductName); Quantity = line.Quantity; }