POST api/ExpanseCashbook/Add

Request Information

URI Parameters

None.

Body Parameters

CashbookAdd
NameDescriptionTypeAdditional information
CashbookId

string

None.

ManagerId

string

None.

CashbookDate

string

None.

CashbookImage

string

None.

CashbookRemarks

string

None.

CostCenterId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CashbookId": "sample string 1",
  "ManagerId": "sample string 2",
  "CashbookDate": "sample string 3",
  "CashbookImage": "sample string 4",
  "CashbookRemarks": "sample string 5",
  "CostCenterId": "sample string 6"
}

application/xml, text/xml

Sample:
<CashbookAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Railtech_HRMS.Model.EmployeeModal">
  <CashbookDate>sample string 3</CashbookDate>
  <CashbookId>sample string 1</CashbookId>
  <CashbookImage>sample string 4</CashbookImage>
  <CashbookRemarks>sample string 5</CashbookRemarks>
  <CostCenterId>sample string 6</CostCenterId>
  <ManagerId>sample string 2</ManagerId>
</CashbookAdd>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CashbookAdd'.

Response Information

Resource Description

CashbookViewResponse
NameDescriptionTypeAdditional information
StatusCode

integer

None.

status

string

None.

statusText

string

None.

TDS

Collection of CashbookView

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "status": "sample string 2",
  "statusText": "sample string 3",
  "TDS": [
    {
      "FullName": "sample string 1",
      "ManagerId": "sample string 2",
      "CashbookDate": "sample string 3",
      "CashbookRemarks": "sample string 4",
      "CashbookImage": "sample string 5",
      "CostCenterId": "sample string 6",
      "CostCenterName": "sample string 7"
    },
    {
      "FullName": "sample string 1",
      "ManagerId": "sample string 2",
      "CashbookDate": "sample string 3",
      "CashbookRemarks": "sample string 4",
      "CashbookImage": "sample string 5",
      "CostCenterId": "sample string 6",
      "CostCenterName": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<CashbookViewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Railtech_HRMS.Model.EmployeeModal">
  <StatusCode>1</StatusCode>
  <TDS>
    <CashbookView>
      <CashbookDate>sample string 3</CashbookDate>
      <CashbookImage>sample string 5</CashbookImage>
      <CashbookRemarks>sample string 4</CashbookRemarks>
      <CostCenterId>sample string 6</CostCenterId>
      <CostCenterName>sample string 7</CostCenterName>
      <FullName>sample string 1</FullName>
      <ManagerId>sample string 2</ManagerId>
    </CashbookView>
    <CashbookView>
      <CashbookDate>sample string 3</CashbookDate>
      <CashbookImage>sample string 5</CashbookImage>
      <CashbookRemarks>sample string 4</CashbookRemarks>
      <CostCenterId>sample string 6</CostCenterId>
      <CostCenterName>sample string 7</CostCenterName>
      <FullName>sample string 1</FullName>
      <ManagerId>sample string 2</ManagerId>
    </CashbookView>
  </TDS>
  <status>sample string 2</status>
  <statusText>sample string 3</statusText>
</CashbookViewResponse>