POST Admin/B2GSubPage/GetDepartmentList
Request Information
URI Parameters
None.
Body Parameters
FrontDepartmentFilterModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DepartmentCode | integer |
None. |
|
| SearchText | string |
None. |
|
| OfficeCode | integer |
None. |
|
| Page | integer |
None. |
|
| PageSize | integer |
None. |
|
| Search | string |
None. |
|
| OrderBy | string |
None. |
|
| OrderByAsc | integer |
None. |
|
| IsPostBack | boolean |
None. |
|
| AdvanceSearchModel | Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"DepartmentCode": 1,
"SearchText": "sample string 2",
"OfficeCode": 3,
"Page": 4,
"PageSize": 5,
"Search": "sample string 6",
"OrderBy": "sample string 7",
"OrderByAsc": 8,
"IsPostBack": true,
"AdvanceSearchModel": {
"sample string 1": {},
"sample string 3": {}
}
}
application/xml, text/xml
Sample:
<FrontDepartmentFilterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.WebsiteModel">
<AdvanceSearchModel xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</AdvanceSearchModel>
<IsPostBack xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">true</IsPostBack>
<OrderBy xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">sample string 7</OrderBy>
<OrderByAsc xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">8</OrderByAsc>
<Page xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">4</Page>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">5</PageSize>
<Search xmlns="http://schemas.datacontract.org/2004/07/B2G.Models.GeneralModel">sample string 6</Search>
<DepartmentCode>1</DepartmentCode>
<OfficeCode>3</OfficeCode>
<SearchText>sample string 2</SearchText>
</FrontDepartmentFilterModel>
application/x-www-form-urlencoded
Sample:
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DepartmentCode" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="SearchText" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OfficeCode" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Page" 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PageSize" 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Search" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OrderBy" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="OrderByAsc" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IsPostBack" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AdvanceSearchModel[0].Key" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AdvanceSearchModel[0].Value" System.Object --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AdvanceSearchModel[1].Key" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="AdvanceSearchModel[1].Value" System.Object --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, multipart/form-data
Sample:
Sample not available.