Method GetPrice
GetPrice(string)
Retrieve the price with the given id on this detail. Ideally this method should only be used when the developer knows the detail only has one price with the given id. If there are multiple prices with that id, it will simply return the first one, which is hard to determine exactly what it will be with multiple.
Declaration
public Price GetPrice(string name = "default")
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The id to search for |
Returns
| Type | Description |
|---|---|
| Price | The price with the matching ID. |