PUT api/Company
Sửa nhà hàng chuỗi
Request Information
URI Parameters
None.
Body Parameters
thông tin nhà hàng
Company| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId |
key |
integer |
None. |
| CompanyCode |
Mã Company |
string |
None. |
| CompanyName |
Tên Company |
string |
None. |
| CoverPhotoName |
Tên ảnh đại diện, lưu cả đuôi ảnh. VD: 808685A0-A0D0-4399-93FE-1E11885B1942.png |
string |
None. |
| Address |
Địa chỉ |
string |
None. |
| OldCoverPhotoName |
Ảnh đại diện trước đó của nhà hàng |
string |
None. |
| IsChain |
Có phải là chuỗi Nhà hàng không (Lấy từ CUKCUK sang) |
boolean |
None. |
| CreatedDate |
Ngày tạo |
date |
None. |
| CreatedBy |
Người tạo |
string |
None. |
| ModifiedDate |
Ngày sửa |
date |
None. |
| ModifiedBy |
Người sửa |
string |
None. |
| MISAEntityState | MISAEntityState |
None. |
Request Formats
application/json, text/json, text/xml, application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
trả về ServiceResult Success thành công thất bại
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
{
"ErrorType": 1,
"ErrorMessage": "sample string 1",
"Data": {},
"SummaryData": {},
"Total": 1,
"Success": true,
"NewId": {},
"LastSyncDate": 1
}
text/xml
<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>