POST api/DistrictAPIs/NewAddDistrict

Request Information

URI Parameters

None.

Body Parameters

DistrictDTO
NameDescriptionTypeAdditional information
Id

integer

None.

DistrictId

integer

None.

DistrictNameEn

string

None.

DistrictNameAr

string

None.

Latitude

string

None.

Longitude

string

None.

CityId

integer

None.

CityNameEn

string

None.

CityNameAr

string

None.

RegionsId

integer

None.

RegionsNameEn

string

None.

RegionsNameAr

string

None.

CountryId

integer

None.

CountryNameEn

string

None.

CountryNameAr

string

None.

IsActive

boolean

None.

SortIndex

integer

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

DeletedBy

integer

None.

Status

boolean

None.

StatusCode

integer

None.

Message

string

None.

Result

string

None.

FlagId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DistrictId": 2,
  "DistrictNameEn": "sample string 3",
  "DistrictNameAr": "sample string 4",
  "Latitude": "sample string 5",
  "Longitude": "sample string 6",
  "CityId": 7,
  "CityNameEn": "sample string 8",
  "CityNameAr": "sample string 9",
  "RegionsId": 10,
  "RegionsNameEn": "sample string 11",
  "RegionsNameAr": "sample string 12",
  "CountryId": 13,
  "CountryNameEn": "sample string 14",
  "CountryNameAr": "sample string 15",
  "IsActive": true,
  "SortIndex": 17,
  "CreatedBy": 18,
  "ModifiedBy": 19,
  "DeletedBy": 20,
  "Status": true,
  "StatusCode": 22,
  "Message": "sample string 23",
  "Result": "sample string 24",
  "FlagId": 25
}

application/xml, text/xml

Sample:
<DistrictDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/drCafeCoffeeAPI.DTOs">
  <CityId>7</CityId>
  <CityNameAr>sample string 9</CityNameAr>
  <CityNameEn>sample string 8</CityNameEn>
  <CountryId>13</CountryId>
  <CountryNameAr>sample string 15</CountryNameAr>
  <CountryNameEn>sample string 14</CountryNameEn>
  <CreatedBy>18</CreatedBy>
  <DeletedBy>20</DeletedBy>
  <DistrictId>2</DistrictId>
  <DistrictNameAr>sample string 4</DistrictNameAr>
  <DistrictNameEn>sample string 3</DistrictNameEn>
  <FlagId>25</FlagId>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Latitude>sample string 5</Latitude>
  <Longitude>sample string 6</Longitude>
  <Message>sample string 23</Message>
  <ModifiedBy>19</ModifiedBy>
  <RegionsId>10</RegionsId>
  <RegionsNameAr>sample string 12</RegionsNameAr>
  <RegionsNameEn>sample string 11</RegionsNameEn>
  <Result>sample string 24</Result>
  <SortIndex>17</SortIndex>
  <Status>true</Status>
  <StatusCode>22</StatusCode>
</DistrictDTO>

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.