GET api/GetDistrictList?StateId={StateId}&CountyCode={CountyCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
StateId

integer

Required

CountyCode

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of StateModel
NameDescriptionTypeAdditional information
StateId

integer

None.

StateName

string

None.

CountyCode

string

None.

DistrictName

string

None.

DistrictId

integer

None.

RegionId

integer

None.

SateCode

string

None.

StateDescription

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StateId": 1,
    "StateName": "sample string 1",
    "CountyCode": "sample string 2",
    "DistrictName": "sample string 3",
    "DistrictId": 1,
    "RegionId": 1,
    "SateCode": "sample string 4",
    "StateDescription": "sample string 5"
  },
  {
    "StateId": 1,
    "StateName": "sample string 1",
    "CountyCode": "sample string 2",
    "DistrictName": "sample string 3",
    "DistrictId": 1,
    "RegionId": 1,
    "SateCode": "sample string 4",
    "StateDescription": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.UserRegistration">
  <StateModel>
    <CountyCode>sample string 2</CountyCode>
    <DistrictId>1</DistrictId>
    <DistrictName>sample string 3</DistrictName>
    <RegionId>1</RegionId>
    <SateCode>sample string 4</SateCode>
    <StateDescription>sample string 5</StateDescription>
    <StateId>1</StateId>
    <StateName>sample string 1</StateName>
  </StateModel>
  <StateModel>
    <CountyCode>sample string 2</CountyCode>
    <DistrictId>1</DistrictId>
    <DistrictName>sample string 3</DistrictName>
    <RegionId>1</RegionId>
    <SateCode>sample string 4</SateCode>
    <StateDescription>sample string 5</StateDescription>
    <StateId>1</StateId>
    <StateName>sample string 1</StateName>
  </StateModel>
</ArrayOfStateModel>