POST api/AddLeave

Request Information

URI Parameters

None.

Body Parameters

AddLeave
NameDescriptionTypeAdditional information
TransferManagerID

string

None.

EmployeeID

string

None.

FromDate

string

None.

ToDate

string

None.

LeaveStatusID

string

None.

LeaveID

string

None.

YearID

string

None.

MonthID

string

None.

Day

string

None.

Description

string

None.

LeaveDaysCount

string

None.

DocumentTypeID

string

None.

LeaveDocName

string

None.

ManagerID

string

None.

LeaveDayTypeID

string

None.

HalfDayType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TransferManagerID": "sample string 1",
  "EmployeeID": "sample string 2",
  "FromDate": "sample string 3",
  "ToDate": "sample string 4",
  "LeaveStatusID": "sample string 5",
  "LeaveID": "sample string 6",
  "YearID": "sample string 7",
  "MonthID": "sample string 8",
  "Day": "sample string 9",
  "Description": "sample string 10",
  "LeaveDaysCount": "sample string 11",
  "DocumentTypeID": "sample string 12",
  "LeaveDocName": "sample string 13",
  "ManagerID": "sample string 14",
  "LeaveDayTypeID": "sample string 15",
  "HalfDayType": "sample string 16"
}

application/xml, text/xml

Sample:
<AddLeave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PayrollApp.Models">
  <Day>sample string 9</Day>
  <Description>sample string 10</Description>
  <DocumentTypeID>sample string 12</DocumentTypeID>
  <EmployeeID>sample string 2</EmployeeID>
  <FromDate>sample string 3</FromDate>
  <HalfDayType>sample string 16</HalfDayType>
  <LeaveDayTypeID>sample string 15</LeaveDayTypeID>
  <LeaveDaysCount>sample string 11</LeaveDaysCount>
  <LeaveDocName>sample string 13</LeaveDocName>
  <LeaveID>sample string 6</LeaveID>
  <LeaveStatusID>sample string 5</LeaveStatusID>
  <ManagerID>sample string 14</ManagerID>
  <MonthID>sample string 8</MonthID>
  <ToDate>sample string 4</ToDate>
  <TransferManagerID>sample string 1</TransferManagerID>
  <YearID>sample string 7</YearID>
</AddLeave>

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.