iikoFront Api V7Preview7 Code Reference
iikoFront Api V7Preview7 Code Reference
Resto.Front.Api.Editors
IEditSession Interface
IEditSession Methods
AddSecondaryComponent Method
AddSecondaryComponent Method (IProduct, IOrderStub, IOrderCompoundItemStub, Nullable(Decimal))
AddSecondaryComponent Method (Guid, IProduct, IOrderStub, IOrderCompoundItemStub, Nullable(Decimal))

# IEditSession AddSecondaryComponent Method (IProduct, IOrderStub, IOrderCompoundItemStub, Nullable Decimal )

Adds a secondary component to the compound item.

Namespace: Resto.Front.Api.Editors
Assembly: Resto.Front.Api.V7Preview7 (in Resto.Front.Api.V7Preview7.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    INewOrderCompoundItemComponentStub AddSecondaryComponent(
    	IProduct product,
    	IOrderStub order,
    	IOrderCompoundItemStub compoundItem,
    	decimal? predefinedPrice = null
    )

#### Parameters

product
  Type: Resto.Front.Api.Data.Assortment
  IProduct
  Assortment position. Must exist in iikoFront assortment.
order
  Type: Resto.Front.Api.Editors.Stubs
  IOrderStub
  Order to which position will be added.
compoundItem
  Type: Resto.Front.Api.Editors.Stubs
  IOrderCompoundItemStub
  Compound item to which new component will be added.
predefinedPrice (Optional)
  Type: System
  Nullable
  Decimal
  Predefined fixed price of the component, allows to use external quotation instead of default price list. null means default price.

#### Return Value

Type: INewOrderCompoundItemComponentStub
See Also

#### Reference

IEditSession Interface
AddSecondaryComponent Overload
Resto.Front.Api.Editors Namespace