Click or drag to resize

OrderExtensionsTryGetGuest Method

Returns guest by id from the specified order or null if order doesn't exist or doesn't contain guest with that id.

Namespace:  Resto.Front.Api.V4.Data.Orders
Assembly:  Resto.Front.Api.V4 (in Resto.Front.Api.V4.dll)
Syntax
C#
public static IOrderItemGuest TryGetGuest(
	this IOrder order,
	IOperationService operationService,
	Guid id
)

Parameters

order
Type: Resto.Front.Api.V4.Data.OrdersIOrder
operationService
Type: Resto.Front.Api.V4IOperationService
id
Type: SystemGuid

Return Value

Type: IOrderItemGuest

Usage 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