Click or drag to resize

IEditSessionAddOrderGuest Method (Guid, String, IOrderStub)

Adds new guest with the given ID to existing order. User must have rights to edit orders.

Namespace:  Resto.Front.Api.V5.Editors
Assembly:  Resto.Front.Api.V5 (in Resto.Front.Api.V5.dll)
Syntax
C#
INewOrderGuestItemStub AddOrderGuest(
	Guid id,
	string name,
	IOrderStub order
)

Parameters

id
Type: SystemGuid
Unique identifier of the new guest in the order. MUST be unique not only for the order, but for the whole system. Therefore it must be taken from some synchronization operation or generated with Guid.NewGuid()
name
Type: SystemString
Name of the new guest. If name is null, then it will be generated automatically.
order
Type: Resto.Front.Api.V5.Editors.StubsIOrderStub
Existing order

Return Value

Type: INewOrderGuestItemStub
See Also