POST api/Area/saveArea

Request Information

URI Parameters

None.

Body Parameters

AreaModel
NameDescriptionTypeAdditional information
AreaId

integer

None.

AreaCode

string

None.

AreaName

string

None.

CityId

integer

None.

CityCode

string

None.

CityName

string

None.

StateId

integer

None.

StateCode

string

None.

StateName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AreaId": 1,
  "AreaCode": "sample string 2",
  "AreaName": "sample string 3",
  "CityId": 4,
  "CityCode": "sample string 5",
  "CityName": "sample string 6",
  "StateId": 7,
  "StateCode": "sample string 8",
  "StateName": "sample string 9"
}

application/xml, text/xml

Sample:
<AreaModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <AreaCode>sample string 2</AreaCode>
  <AreaId>1</AreaId>
  <AreaName>sample string 3</AreaName>
  <CityCode>sample string 5</CityCode>
  <CityId>4</CityId>
  <CityName>sample string 6</CityName>
  <StateCode>sample string 8</StateCode>
  <StateId>7</StateId>
  <StateName>sample string 9</StateName>
</AreaModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AreaReturnModel
NameDescriptionTypeAdditional information
status

boolean

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<AreaReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <msg>sample string 2</msg>
  <status>true</status>
</AreaReturnModel>