POST api/Product/DeleteProduct

Request Information

URI Parameters

None.

Body Parameters

ProductModel
NameDescriptionTypeAdditional information
Id

integer

None.

Type

string

None.

Brand

string

None.

Name

string

None.

Description

string

None.

Price

decimal number

None.

IsActive

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

ProductColor

string

None.

Quantity

integer

None.

IsDiscount

boolean

None.

Discount

integer

None.

CreatedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Type": "sample string 2",
  "Brand": "sample string 3",
  "Name": "sample string 4",
  "Description": "sample string 5",
  "Price": 1.0,
  "IsActive": true,
  "CreatedBy": "sample string 7",
  "ModifiedBy": "sample string 8",
  "ProductColor": "sample string 9",
  "Quantity": 1,
  "IsDiscount": true,
  "Discount": 1,
  "CreatedOn": "2019-10-16T23:10:42.8866787+05:00"
}

application/xml, text/xml

Sample:
<ProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Product">
  <Brand>sample string 3</Brand>
  <CreatedBy>sample string 7</CreatedBy>
  <CreatedOn>2019-10-16T23:10:42.8866787+05:00</CreatedOn>
  <Description>sample string 5</Description>
  <Discount>1</Discount>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDiscount>true</IsDiscount>
  <ModifiedBy>sample string 8</ModifiedBy>
  <Name>sample string 4</Name>
  <Price>1</Price>
  <ProductColor>sample string 9</ProductColor>
  <Quantity>1</Quantity>
  <Type>sample string 2</Type>
</ProductModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.