POST api/Product/ReturnSaledProduct

Request Information

URI Parameters

None.

Body Parameters

Sale
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

ProductId

globally unique identifier

None.

ProductnName

string

None.

Quantity

integer

None.

Price

decimal number

None.

SaleDate

date

None.

UserId

integer

None.

PriceTypeId

integer

None.

Type

SaleType

None.

Provider

string

None.

User

User

None.

PriceType

PriceType

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'IRetailDataLib.User'. Path 'User.Role.User'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'IRetailDataLib.User'. Path 'User.Role.User'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Граф объекта для типа "System.Collections.Generic.List`1[[IRetailDataLib.Activity, IRetailDataLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" содержит циклы и не может быть сериализован, если отключено отслеживание ссылок.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Граф объекта для типа "System.Collections.Generic.List`1[[IRetailDataLib.Activity, IRetailDataLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]" содержит циклы и не может быть сериализован, если отключено отслеживание ссылок.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Sale'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
IsSucces

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSucces": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IRetail.Helpers">
  <IsSucces>true</IsSucces>
  <Message>sample string 2</Message>
</ResponseModel>