POST Api/Employee/InsertEmployeeDetails

Request Information

URI Parameters

None.

Body Parameters

ProductDTO
NameDescriptionTypeAdditional information
ID

string

None.

Name

string

None.

Price

string

None.

occasionDetails

Collection of occasionDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "Name": "sample string 2",
  "Price": "sample string 3",
  "occasionDetails": [
    {
      "occasionName": "sample string 1"
    },
    {
      "occasionName": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<ProductDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRUDAPI.Models">
  <ID>sample string 1</ID>
  <Name>sample string 2</Name>
  <Price>sample string 3</Price>
  <occasionDetails>
    <occasionDetail>
      <occasionName>sample string 1</occasionName>
    </occasionDetail>
    <occasionDetail>
      <occasionName>sample string 1</occasionName>
    </occasionDetail>
  </occasionDetails>
</ProductDTO>

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.