Returns product by id from the specified order or null if order doesn't exist or doesn't contain product with that id.
Namespace: Resto.Front.Api.V3.Data.Orders
Assembly: Resto.Front.Api.V3 (in Resto.Front.Api.V3.dll) Version: 4.1.1236.1 (4.1.1236.1)
Syntax
C#
public static IOrderItemProduct TryGetProduct( this IOrder order, IOperationService operationService, Guid id )
Parameters
- order
- Type: Resto.Front.Api.V3.Data.OrdersIOrder
- operationService
- Type: Resto.Front.Api.V3IOperationService
- id
- Type: SystemGuid
Return Value
Type: IOrderItemProductUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IOrder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also