PUT api/admin/Restaurant/status

Cập nhật trạng thái nhà hàng

Request Information

URI Parameters

None.

Body Parameters

nhà hàng cần cập nhật

RestaurantAdminParam
NameDescriptionTypeAdditional information
RestaurantIds

Danh sách ID của nhà hàng

Collection of integer

None.

Status

Trạng thái của nhà hàng

RestaurantStatus

None.

Request Formats

application/json, text/json

Sample:
{
  "RestaurantIds": [
    1,
    2
  ],
  "Status": 0
}

text/xml

Sample:
<RestaurantAdminParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
  <RestaurantIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </RestaurantIds>
  <Status>Active</Status>
</RestaurantAdminParam>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RestaurantAdminParam'.

Response Information

Resource Description

trả về ServiceResult Success thành công thất bại

ServiceResult
NameDescriptionTypeAdditional information
ErrorType

Loại lỗi

EnumServiceErrorType

None.

ErrorMessage

Thông tin lỗi

string

None.

Data

Dữ liệu trả về cho client

Object

None.

SummaryData

Dữ liệu dòng tổng trên grid trả về client

Object

None.

Total

Tổng số bản ghi trên grid

integer

None.

Success

Thực thi Service thành công

boolean

None.

NewId

Trả về ID của đối tượng khi cất thành công

Object

None.

LastSyncDate

Thời gian truy cập lấy dữ liệu tính đến thời điểm hiện tại, Lưu dạng long để truyền qua webapi

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorType": 1,
  "ErrorMessage": "sample string 1",
  "Data": {},
  "SummaryData": {},
  "Total": 1,
  "Success": true,
  "NewId": {},
  "LastSyncDate": 1
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
  <Data />
  <ErrorMessage>sample string 1</ErrorMessage>
  <ErrorType>CUKCUKSeflOrderPaid</ErrorType>
  <LastSyncDate>1</LastSyncDate>
  <NewId />
  <Success>true</Success>
  <SummaryData />
  <Total>1</Total>
</ServiceResult>