Click or drag to resize

IEditSession.AddDiscount Method

Adds simple discount of known type to existing order. User must have rights to work with discounts.

Namespace:  Resto.Front.Api.Editors
Assembly:  Resto.Front.Api.V7 (in Resto.Front.Api.V7.dll)
Syntax
C#
void AddDiscount(
	IDiscountType discount,
	IOrderStub order
)

Parameters

discount
Type: Resto.Front.Api.Data.Orders.IDiscountType
Type of the discount
order
Type: Resto.Front.Api.Editors.Stubs.IOrderStub
Order where discount will be applied.
See Also