Sage.PL.WebAPI.Interface.Contractors.Interfaces Namespace > IContractorDeliveryAddressesController Interface > IContractorDeliveryAddressesController Methods > Update Method  > Update Method (Int32, ContractorDeliveryAddress)

Drukuj

.NET Framework Class Library

IContractorDeliveryAddressesController.Update Method (Int32, ContractorDeliveryAddress)

Metoda umożliwia aktualizacje lub utworzenie nowego adresu dostawy dla kontrahenta o podanym id. W przypadku, gdy nie istnieje adres dostawy o podanym id lub kodzie, zostanie utworzony nowy adres dostawy o podanych wartościach dla wskazanego kontrahenta.

[PUT] /api/ContractorDeliveryAddresses/Update?contractorId=id_kontrahenta

Namespace: Sage.PL.WebAPI.Interface.Contractors.Interfaces

Assembly:  Sage.PL.WebAPI.Interface.Contractors (in Sage.PL.WebAPI.Interface.Contractors.dll) Version: 24.2.1.0 (24.2.1.0)

Syntax

Visual Basic

Function Update ( _
 contractorId As Integer, _
 contractorDeliveryAddress As ContractorDeliveryAddress _
As IHttpActionResult

C#

IHttpActionResult Update(
 int contractorId,
 ContractorDeliveryAddress contractorDeliveryAddress
)

Visual C++

IHttpActionResultUpdate(
 int contractorId,
 ContractorDeliveryAddresscontractorDeliveryAddress
)

JavaScript

function update(contractorIdcontractorDeliveryAddress);

Parameters

contractorId

Type: System.Int32

[FromUri] Id kontrahenta.

contractorDeliveryAddress

Type: Sage.PL.WebAPI.Interface.Contractors.ViewModels.ContractorDeliveryAddress

[FromBody] Obiekt adresu dostawy kontrahenta do aktualizacji.

Return Value

Metoda nie zwraca żadnej zawartości.

See Also

IContractorDeliveryAddressesController Interface

IContractorDeliveryAddressesController Members

Update Overload

Sage.PL.WebAPI.Interface.Contractors.Interfaces Namespace