POST api/Employee/GetSectionListByClassId

Request Information

URI Parameters

None.

Body Parameters

EmployeeCommonModel
NameDescriptionTypeAdditional information
StaffID

integer

None.

ClassID

integer

None.

SectionList

Collection of SectionModel

None.

Status

integer

None.

Message

string

None.

Domain

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StaffID": 1,
  "ClassID": 2,
  "SectionList": [
    {
      "ID": 1,
      "SectionName": "sample string 2",
      "SectionStatus": true,
      "CreateDate": "2021-05-14T22:41:49.3360335-07:00",
      "Status": 3,
      "Message": "sample string 4",
      "Domain": "sample string 5"
    },
    {
      "ID": 1,
      "SectionName": "sample string 2",
      "SectionStatus": true,
      "CreateDate": "2021-05-14T22:41:49.3360335-07:00",
      "Status": 3,
      "Message": "sample string 4",
      "Domain": "sample string 5"
    }
  ],
  "Status": 3,
  "Message": "sample string 4",
  "Domain": "sample string 5"
}

application/xml

Sample:
<EmployeeCommonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.Employee">
  <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
  <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
  <ClassID>2</ClassID>
  <SectionList xmlns:d2p1="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.MasterModels">
    <d2p1:SectionModel>
      <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
      <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
      <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
      <d2p1:CreateDate>2021-05-14T22:41:49.3360335-07:00</d2p1:CreateDate>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:SectionName>sample string 2</d2p1:SectionName>
      <d2p1:SectionStatus>true</d2p1:SectionStatus>
    </d2p1:SectionModel>
    <d2p1:SectionModel>
      <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
      <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
      <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
      <d2p1:CreateDate>2021-05-14T22:41:49.3360335-07:00</d2p1:CreateDate>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:SectionName>sample string 2</d2p1:SectionName>
      <d2p1:SectionStatus>true</d2p1:SectionStatus>
    </d2p1:SectionModel>
  </SectionList>
  <StaffID>1</StaffID>
</EmployeeCommonModel>

text/xml

Sample:
<EmployeeCommonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.Employee">
  <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
  <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
  <ClassID>2</ClassID>
  <SectionList xmlns:d2p1="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.MasterModels">
    <d2p1:SectionModel>
      <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
      <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
      <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
      <d2p1:CreateDate>2021-05-14T22:41:49.3516595-07:00</d2p1:CreateDate>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:SectionName>sample string 2</d2p1:SectionName>
      <d2p1:SectionStatus>true</d2p1:SectionStatus>
    </d2p1:SectionModel>
    <d2p1:SectionModel>
      <Domain xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 5</Domain>
      <Message xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">sample string 4</Message>
      <Status xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models">3</Status>
      <d2p1:CreateDate>2021-05-14T22:41:49.3516595-07:00</d2p1:CreateDate>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:SectionName>sample string 2</d2p1:SectionName>
      <d2p1:SectionStatus>true</d2p1:SectionStatus>
    </d2p1:SectionModel>
  </SectionList>
  <StaffID>1</StaffID>
</EmployeeCommonModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.