POST Api/EmployeeLeave/SaveLeave

Request Information

URI Parameters

None.

Body Parameters

EmpLeaveVM
NameDescriptionTypeAdditional information
LeaveId

integer

None.

EmployeeId

integer

None.

DateFrom

string

None.

DateTo

string

None.

ReasonId

integer

None.

Notes

string

None.

WithPay

boolean

None.

WithFood

boolean

None.

IsApproved

boolean

None.

UserID

integer

None.

CreatedByName

string

None.

CreationDateTime

string

None.

ApprovedBy

integer

None.

ApprovedByName

string

None.

ApprovedDateTime

string

None.

IsReject

boolean

None.

RejectBy

integer

None.

RejectByName

string

None.

RejectDateTime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveId": 1,
  "EmployeeId": 1,
  "DateFrom": "sample string 1",
  "DateTo": "sample string 2",
  "ReasonId": 1,
  "Notes": "sample string 3",
  "WithPay": true,
  "WithFood": true,
  "IsApproved": true,
  "UserID": 1,
  "CreatedByName": "sample string 4",
  "CreationDateTime": "sample string 5",
  "ApprovedBy": 1,
  "ApprovedByName": "sample string 6",
  "ApprovedDateTime": "sample string 7",
  "IsReject": true,
  "RejectBy": 1,
  "RejectByName": "sample string 8",
  "RejectDateTime": "sample string 9"
}

application/xml, text/xml

Sample:
<EmpLeaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.ViewModel">
  <ApprovedBy>1</ApprovedBy>
  <ApprovedByName>sample string 6</ApprovedByName>
  <ApprovedDateTime>sample string 7</ApprovedDateTime>
  <CreatedByName>sample string 4</CreatedByName>
  <CreationDateTime>sample string 5</CreationDateTime>
  <DateFrom>sample string 1</DateFrom>
  <DateTo>sample string 2</DateTo>
  <EmployeeId>1</EmployeeId>
  <IsApproved>true</IsApproved>
  <IsReject>true</IsReject>
  <LeaveId>1</LeaveId>
  <Notes>sample string 3</Notes>
  <ReasonId>1</ReasonId>
  <RejectBy>1</RejectBy>
  <RejectByName>sample string 8</RejectByName>
  <RejectDateTime>sample string 9</RejectDateTime>
  <UserID>1</UserID>
  <WithFood>true</WithFood>
  <WithPay>true</WithPay>
</EmpLeaveVM>

multipart/form-data

Sample:
<EmpLeaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.ViewModel"><ApprovedBy>1</ApprovedBy><ApprovedByName>sample string 6</ApprovedByName><ApprovedDateTime>sample string 7</ApprovedDateTime><CreatedByName>sample string 4</CreatedByName><CreationDateTime>sample string 5</CreationDateTime><DateFrom>sample string 1</DateFrom><DateTo>sample string 2</DateTo><EmployeeId>1</EmployeeId><IsApproved>true</IsApproved><IsReject>true</IsReject><LeaveId>1</LeaveId><Notes>sample string 3</Notes><ReasonId>1</ReasonId><RejectBy>1</RejectBy><RejectByName>sample string 8</RejectByName><RejectDateTime>sample string 9</RejectDateTime><UserID>1</UserID><WithFood>true</WithFood><WithPay>true</WithPay></EmpLeaveVM>

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, multipart/form-data

Sample:

Sample not available.