POST api/Country/Save

Request Information

URI Parameters

None.

Requires Authorization!

Body Parameters

CountryCreateViewModel
NameDescriptionTypeAdditional information
CountryID

integer

None.

CountryEnglishName

string

Required

Matching regular expression pattern: [a-zA-Z\s]{3,}

String length: inclusive between 3 and 30

CountryArbicName

string

Required

Matching regular expression pattern: [\u0621-\u064A\u0660-\u0669 ]+$

String length: inclusive between 3 and 30

CountryCode

string

Required

IsDeleted

boolean

None.

TimeZoneCorrection

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "CountryID": 1,
  "CountryEnglishName": "sample string 2",
  "CountryArbicName": "sample string 3",
  "CountryCode": "sample string 4",
  "IsDeleted": true,
  "TimeZoneCorrection": 6
}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.