POST api/PayrollLeaveEntry/Save

Request Information

URI Parameters

None.

Body Parameters

PayrollLeaveEntrySaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

Employee

EmployeeLookup

Required

LeaveEntryDate

string

Required

LeaveDateFrom

string

Required

LeaveDateTo

string

Required

TotalLeaves

decimal number

Required

LeaveType

PayrollLeaveTypeLookupVM

Required

LeaveReason

string

String length: inclusive between 0 and 200

Remarks

string

String length: inclusive between 0 and 200

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

CalenderYear

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "Employee": {
    "EmployeeId": 1,
    "EmployeeName": "sample string 2",
    "Prefix": "sample string 3",
    "PresentHouseName": "sample string 4",
    "PresentAddress": "sample string 5",
    "EmployeeStatus": "sample string 6"
  },
  "LeaveEntryDate": "sample string 2",
  "LeaveDateFrom": "sample string 3",
  "LeaveDateTo": "sample string 4",
  "TotalLeaves": 5.0,
  "LeaveType": {
    "LeaveTypeId": 1,
    "LeaveTypeName": "sample string 2"
  },
  "LeaveReason": "sample string 6",
  "Remarks": "sample string 7",
  "CreateUser": 8,
  "CreateIp": "sample string 9",
  "CalenderYear": 10
}

application/xml, text/xml

Sample:
<PayrollLeaveEntrySaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>1</BookId>
  <CalenderYear>10</CalenderYear>
  <CreateIp>sample string 9</CreateIp>
  <CreateUser>8</CreateUser>
  <Employee>
    <EmployeeId>1</EmployeeId>
    <EmployeeName>sample string 2</EmployeeName>
    <EmployeeStatus>sample string 6</EmployeeStatus>
    <Prefix>sample string 3</Prefix>
    <PresentAddress>sample string 5</PresentAddress>
    <PresentHouseName>sample string 4</PresentHouseName>
  </Employee>
  <LeaveDateFrom>sample string 3</LeaveDateFrom>
  <LeaveDateTo>sample string 4</LeaveDateTo>
  <LeaveEntryDate>sample string 2</LeaveEntryDate>
  <LeaveReason>sample string 6</LeaveReason>
  <LeaveType>
    <LeaveTypeId>1</LeaveTypeId>
    <LeaveTypeName>sample string 2</LeaveTypeName>
  </LeaveType>
  <Remarks>sample string 7</Remarks>
  <TotalLeaves>5</TotalLeaves>
</PayrollLeaveEntrySaveVM>

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.