GET api/DocumentType/BusinessOrBoth/{IncludeInactive}/{IsBusOnly}

Either get the Bus only types, including/excluding the inactive ones, or get Both, the bus and "non" business types, including/excluding the inactive ones. IncludeInactive = true includes the inactive types IsBusOnly = true only selects the business type, false selects both.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IncludeInactive

boolean

Required

IsBusOnly

boolean

Required

Body Parameters

None.

Response Information

Resource Description

Collection of DocumentTypeDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Description

string

None.

InsertBy

integer

None.

InsertDate

date

None.

IsActive

boolean

None.

UpdateBy

integer

None.

UpdateDate

date

None.

IsBusOnly

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Description": "sample string 2",
    "InsertBy": 3,
    "InsertDate": "2025-04-29T13:36:52.8129248-06:00",
    "IsActive": true,
    "UpdateBy": 1,
    "UpdateDate": "2025-04-29T13:36:52.8129248-06:00",
    "IsBusOnly": true
  },
  {
    "Id": 1,
    "Description": "sample string 2",
    "InsertBy": 3,
    "InsertDate": "2025-04-29T13:36:52.8129248-06:00",
    "IsActive": true,
    "UpdateBy": 1,
    "UpdateDate": "2025-04-29T13:36:52.8129248-06:00",
    "IsBusOnly": true
  }
]

text/html

Sample:
[{"Id":1,"Description":"sample string 2","InsertBy":3,"InsertDate":"2025-04-29T13:36:52.8129248-06:00","IsActive":true,"UpdateBy":1,"UpdateDate":"2025-04-29T13:36:52.8129248-06:00","IsBusOnly":true},{"Id":1,"Description":"sample string 2","InsertBy":3,"InsertDate":"2025-04-29T13:36:52.8129248-06:00","IsActive":true,"UpdateBy":1,"UpdateDate":"2025-04-29T13:36:52.8129248-06:00","IsBusOnly":true}]

application/xml, text/xml

Sample:
<ArrayOfDocumentTypeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL">
  <DocumentTypeDTO>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <InsertBy>3</InsertBy>
    <InsertDate>2025-04-29T13:36:52.8129248-06:00</InsertDate>
    <IsActive>true</IsActive>
    <IsBusOnly>true</IsBusOnly>
    <UpdateBy>1</UpdateBy>
    <UpdateDate>2025-04-29T13:36:52.8129248-06:00</UpdateDate>
  </DocumentTypeDTO>
  <DocumentTypeDTO>
    <Description>sample string 2</Description>
    <Id>1</Id>
    <InsertBy>3</InsertBy>
    <InsertDate>2025-04-29T13:36:52.8129248-06:00</InsertDate>
    <IsActive>true</IsActive>
    <IsBusOnly>true</IsBusOnly>
    <UpdateBy>1</UpdateBy>
    <UpdateDate>2025-04-29T13:36:52.8129248-06:00</UpdateDate>
  </DocumentTypeDTO>
</ArrayOfDocumentTypeDTO>