GET api/Depreciation/GetUsefulLifeList

Api to Get useful life List

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

UsefulLifeResponseModel
NameDescriptionTypeAdditional information
UsefulLifeList

Collection of UsefulLifeDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "usefulLifeList": [
    {
      "usefulLifeID": 1,
      "usefulLifeValue": 2
    },
    {
      "usefulLifeID": 1,
      "usefulLifeValue": 2
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<UsefulLifeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Depreciation">
  <Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
  <UsefulLifeList>
    <UsefulLifeDataModel>
      <UsefulLifeID>1</UsefulLifeID>
      <UsefulLifeValue>2</UsefulLifeValue>
    </UsefulLifeDataModel>
    <UsefulLifeDataModel>
      <UsefulLifeID>1</UsefulLifeID>
      <UsefulLifeValue>2</UsefulLifeValue>
    </UsefulLifeDataModel>
  </UsefulLifeList>
</UsefulLifeResponseModel>

multipart/form-data

Sample:
<UsefulLifeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.Depreciation"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><UsefulLifeList><UsefulLifeDataModel><UsefulLifeID>1</UsefulLifeID><UsefulLifeValue>2</UsefulLifeValue></UsefulLifeDataModel><UsefulLifeDataModel><UsefulLifeID>1</UsefulLifeID><UsefulLifeValue>2</UsefulLifeValue></UsefulLifeDataModel></UsefulLifeList></UsefulLifeResponseModel>