POST api/NTCosCompany/SaveCompanyService
Request Information
URI Parameters
None.
Body Parameters
CompanyServicesDTOName | Description | Type | Additional information |
---|---|---|---|
NewServices | Collection of ServiceDTO |
None. |
|
OldServices | Collection of ServiceDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "NewServices": [ { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0382105-08:00", "DateUpdated": "2024-11-21T00:35:10.0382105-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true }, { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0382105-08:00", "DateUpdated": "2024-11-21T00:35:10.0382105-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true } ], "OldServices": [ { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0382105-08:00", "DateUpdated": "2024-11-21T00:35:10.0382105-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true }, { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0382105-08:00", "DateUpdated": "2024-11-21T00:35:10.0382105-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true } ] }
application/xml, text/xml
Sample:
<CompanyServicesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.BL"> <NewServices> <ServiceDTO> <CompanyCode>sample string 11</CompanyCode> <DateCreated>2024-11-21T00:35:10.0382105-08:00</DateCreated> <DateUpdated>2024-11-21T00:35:10.0382105-08:00</DateUpdated> <IsExcludeDiscount>true</IsExcludeDiscount> <UserIDCreated>9</UserIDCreated> <UserIDUpdated>10</UserIDUpdated> <ValidFlag>true</ValidFlag> <CompanyServiceId>5</CompanyServiceId> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <ServiceActive>true</ServiceActive> </ServiceDTO> <ServiceDTO> <CompanyCode>sample string 11</CompanyCode> <DateCreated>2024-11-21T00:35:10.0382105-08:00</DateCreated> <DateUpdated>2024-11-21T00:35:10.0382105-08:00</DateUpdated> <IsExcludeDiscount>true</IsExcludeDiscount> <UserIDCreated>9</UserIDCreated> <UserIDUpdated>10</UserIDUpdated> <ValidFlag>true</ValidFlag> <CompanyServiceId>5</CompanyServiceId> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <ServiceActive>true</ServiceActive> </ServiceDTO> </NewServices> <OldServices> <ServiceDTO> <CompanyCode>sample string 11</CompanyCode> <DateCreated>2024-11-21T00:35:10.0382105-08:00</DateCreated> <DateUpdated>2024-11-21T00:35:10.0382105-08:00</DateUpdated> <IsExcludeDiscount>true</IsExcludeDiscount> <UserIDCreated>9</UserIDCreated> <UserIDUpdated>10</UserIDUpdated> <ValidFlag>true</ValidFlag> <CompanyServiceId>5</CompanyServiceId> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <ServiceActive>true</ServiceActive> </ServiceDTO> <ServiceDTO> <CompanyCode>sample string 11</CompanyCode> <DateCreated>2024-11-21T00:35:10.0382105-08:00</DateCreated> <DateUpdated>2024-11-21T00:35:10.0382105-08:00</DateUpdated> <IsExcludeDiscount>true</IsExcludeDiscount> <UserIDCreated>9</UserIDCreated> <UserIDUpdated>10</UserIDUpdated> <ValidFlag>true</ValidFlag> <CompanyServiceId>5</CompanyServiceId> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> <ServiceActive>true</ServiceActive> </ServiceDTO> </OldServices> </CompanyServicesDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AsapResponseOfCompanyServicesDTOName | Description | Type | Additional information |
---|---|---|---|
isSuccess | boolean |
None. |
|
message | string |
None. |
|
jsonObj | CompanyServicesDTO |
None. |
|
totalCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "isSuccess": true, "message": "sample string 2", "jsonObj": { "NewServices": [ { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0545459-08:00", "DateUpdated": "2024-11-21T00:35:10.0545459-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true }, { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0545459-08:00", "DateUpdated": "2024-11-21T00:35:10.0545459-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true } ], "OldServices": [ { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0545459-08:00", "DateUpdated": "2024-11-21T00:35:10.0545459-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true }, { "Id": 1, "Name": "sample string 2", "Description": "sample string 3", "ServiceActive": true, "CompanyServiceId": 5, "ValidFlag": true, "DateCreated": "2024-11-21T00:35:10.0545459-08:00", "DateUpdated": "2024-11-21T00:35:10.0545459-08:00", "UserIDCreated": 9, "UserIDUpdated": 10, "CompanyCode": "sample string 11", "IsExcludeDiscount": true } ] }, "totalCount": 3 }
application/xml, text/xml
Sample:
<AsapResponseOfCompanyServicesDTO3NYuOdgi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASAP_BL.Common"> <isSuccess>true</isSuccess> <jsonObj xmlns:d2p1="http://schemas.datacontract.org/2004/07/ASAP_BL.BL"> <d2p1:NewServices> <d2p1:ServiceDTO> <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode> <d2p1:DateCreated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateCreated> <d2p1:DateUpdated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateUpdated> <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount> <d2p1:UserIDCreated>9</d2p1:UserIDCreated> <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated> <d2p1:ValidFlag>true</d2p1:ValidFlag> <d2p1:CompanyServiceId>5</d2p1:CompanyServiceId> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ServiceActive>true</d2p1:ServiceActive> </d2p1:ServiceDTO> <d2p1:ServiceDTO> <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode> <d2p1:DateCreated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateCreated> <d2p1:DateUpdated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateUpdated> <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount> <d2p1:UserIDCreated>9</d2p1:UserIDCreated> <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated> <d2p1:ValidFlag>true</d2p1:ValidFlag> <d2p1:CompanyServiceId>5</d2p1:CompanyServiceId> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ServiceActive>true</d2p1:ServiceActive> </d2p1:ServiceDTO> </d2p1:NewServices> <d2p1:OldServices> <d2p1:ServiceDTO> <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode> <d2p1:DateCreated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateCreated> <d2p1:DateUpdated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateUpdated> <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount> <d2p1:UserIDCreated>9</d2p1:UserIDCreated> <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated> <d2p1:ValidFlag>true</d2p1:ValidFlag> <d2p1:CompanyServiceId>5</d2p1:CompanyServiceId> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ServiceActive>true</d2p1:ServiceActive> </d2p1:ServiceDTO> <d2p1:ServiceDTO> <d2p1:CompanyCode>sample string 11</d2p1:CompanyCode> <d2p1:DateCreated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateCreated> <d2p1:DateUpdated>2024-11-21T00:35:10.0545459-08:00</d2p1:DateUpdated> <d2p1:IsExcludeDiscount>true</d2p1:IsExcludeDiscount> <d2p1:UserIDCreated>9</d2p1:UserIDCreated> <d2p1:UserIDUpdated>10</d2p1:UserIDUpdated> <d2p1:ValidFlag>true</d2p1:ValidFlag> <d2p1:CompanyServiceId>5</d2p1:CompanyServiceId> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> <d2p1:ServiceActive>true</d2p1:ServiceActive> </d2p1:ServiceDTO> </d2p1:OldServices> </jsonObj> <message>sample string 2</message> <totalCount>3</totalCount> </AsapResponseOfCompanyServicesDTO3NYuOdgi>