POST api/ServiceCenter/AddOrUpdate

Request Information

URI Parameters

None.

Body Parameters

ServiceCenterModel
NameDescriptionTypeAdditional information
Id

integer

None.

ProvinceId

byte

None.

Province

string

None.

CityId

integer

None.

City

string

None.

IsServiceCenter

boolean

None.

ShopName

string

None.

Address

string

None.

Email

string

None.

PhoneNumber

string

None.

OperatingHours

string

None.

CreatedBy

string

None.

ModifiedBy

string

None.

Latitude

string

None.

Longitude

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProvinceId": 64,
  "Province": "sample string 3",
  "CityId": 4,
  "City": "sample string 5",
  "IsServiceCenter": true,
  "ShopName": "sample string 7",
  "Address": "sample string 8",
  "Email": "sample string 9",
  "PhoneNumber": "sample string 10",
  "OperatingHours": "sample string 11",
  "CreatedBy": "sample string 12",
  "ModifiedBy": "sample string 13",
  "Latitude": "sample string 14",
  "Longitude": "sample string 15"
}

application/xml, text/xml

Sample:
<ServiceCenterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.ServiceCenters">
  <Address>sample string 8</Address>
  <City>sample string 5</City>
  <CityId>4</CityId>
  <CreatedBy>sample string 12</CreatedBy>
  <Email>sample string 9</Email>
  <Id>1</Id>
  <IsServiceCenter>true</IsServiceCenter>
  <Latitude>sample string 14</Latitude>
  <Longitude>sample string 15</Longitude>
  <ModifiedBy>sample string 13</ModifiedBy>
  <OperatingHours>sample string 11</OperatingHours>
  <PhoneNumber>sample string 10</PhoneNumber>
  <Province>sample string 3</Province>
  <ProvinceId>64</ProvinceId>
  <ShopName>sample string 7</ShopName>
</ServiceCenterModel>

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.