POST api/AdminProduct/DeleteProduct/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ProductViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
CreatedOn | date |
None. |
|
ProductId | integer |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "CreatedOn": "2025-05-16T23:28:12.7397458Z", "ProductId": 3, "Name": "sample string 4" }, { "Id": 1, "CreatedOn": "2025-05-16T23:28:12.7397458Z", "ProductId": 3, "Name": "sample string 4" } ]
text/html
Sample:
[{"Id":1,"CreatedOn":"2025-05-16T23:28:12.7397458Z","ProductId":3,"Name":"sample string 4"},{"Id":1,"CreatedOn":"2025-05-16T23:28:12.7397458Z","ProductId":3,"Name":"sample string 4"}]
application/xml, text/xml
Sample:
<ArrayOfProductViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAO.Models.Admin"> <ProductViewModel> <Name>sample string 4</Name> <ProductId>3</ProductId> <CreatedOn>2025-05-16T23:28:12.7397458Z</CreatedOn> <Id>1</Id> </ProductViewModel> <ProductViewModel> <Name>sample string 4</Name> <ProductId>3</ProductId> <CreatedOn>2025-05-16T23:28:12.7397458Z</CreatedOn> <Id>1</Id> </ProductViewModel> </ArrayOfProductViewModel>