POST api/Customers/SaveWorker

Request Information

URI Parameters

None.

Body Parameters

WorkerDto
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerId

integer

None.

Name

string

None.

Email

string

None.

ContactNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerId": 2,
  "Name": "sample string 3",
  "Email": "sample string 4",
  "ContactNumber": "sample string 5"
}

application/xml, text/xml

Sample:
check

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 'WorkerDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.