POST api/RestaurantDBOption
thêm hoạc cập nhật các key thiết lập từ cukcuk mà cần phải có
Request Information
URI Parameters
None.
Body Parameters
thông tin thiết lập
RestaurantDBOptionParam| Name | Description | Type | Additional information |
|---|---|---|---|
| ListRestaurantDBOption |
Danh sách các thiết lập cập nhật |
Collection of RestaurantDBOption |
None. |
| CompanyCode |
Domain nhà hàng |
string |
None. |
| RestaurantId |
Id nhà hàng |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ListRestaurantDBOption": [
null,
{
"RestaurantDBOptionId": 1,
"RestaurantId": 1,
"OptionId": "sample string 2",
"OptionValue": "sample string 3",
"ValueType": 4,
"Description": "sample string 5",
"CompanyCode": "sample string 6",
"BranchId": "7455bb04-6e05-4d63-84bd-e86f796ab360",
"CreatedDate": "2026-04-05T12:37:07.3596483+07:00",
"CreatedBy": "sample string 8",
"ModifiedDate": "2026-04-05T12:37:07.3596483+07:00",
"ModifiedBy": "sample string 9",
"MISAEntityState": 0
}
],
"CompanyCode": "sample string 1",
"RestaurantId": 1
}
text/xml
Sample:
<RestaurantDBOptionParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
<CompanyCode>sample string 1</CompanyCode>
<ListRestaurantDBOption>
<RestaurantDBOption i:nil="true" />
<RestaurantDBOption>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 10</ClientID>
<CreatedBy>sample string 8</CreatedBy>
<CreatedDate>2026-04-05T12:37:07.3596483+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 9</ModifiedBy>
<ModifiedDate>2026-04-05T12:37:07.3596483+07:00</ModifiedDate>
<BranchId>7455bb04-6e05-4d63-84bd-e86f796ab360</BranchId>
<CompanyCode>sample string 6</CompanyCode>
<Description>sample string 5</Description>
<OptionId>sample string 2</OptionId>
<OptionValue>sample string 3</OptionValue>
<RestaurantDBOptionId>1</RestaurantDBOptionId>
<RestaurantId>1</RestaurantId>
<ValueType>4</ValueType>
</RestaurantDBOption>
</ListRestaurantDBOption>
<RestaurantId>1</RestaurantId>
</RestaurantDBOptionParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
trả về cập nhật thành công hay ko
ServiceResult| Name | Description | Type | Additional 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>