POST api/ParishServiceCharges/Save

Request Information

URI Parameters

None.

Body Parameters

ParishServiceChargesSaveVM
NameDescriptionTypeAdditional information
Service

ParishServiceLookupVM

Required

BookId

integer

Required

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Charges

Collection of ParishServiceChargesByIdVM

Required

Request Formats

application/json, text/json

Sample:
{
  "Service": {
    "ServiceId": 1,
    "ServiceName": "sample string 2"
  },
  "BookId": 1,
  "CreateUser": 2,
  "CreateIp": "sample string 3",
  "Charges": [
    {
      "Slno": 1,
      "Charges": {
        "ChargeId": 1,
        "ChargeName": "sample string 2"
      },
      "Amount": 2.0
    },
    {
      "Slno": 1,
      "Charges": {
        "ChargeId": 1,
        "ChargeName": "sample string 2"
      },
      "Amount": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<ParishServiceChargesSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <BookId>1</BookId>
  <Charges>
    <ParishServiceChargesByIdVM>
      <Amount>2</Amount>
      <Charges>
        <ChargeId>1</ChargeId>
        <ChargeName>sample string 2</ChargeName>
      </Charges>
      <Slno>1</Slno>
    </ParishServiceChargesByIdVM>
    <ParishServiceChargesByIdVM>
      <Amount>2</Amount>
      <Charges>
        <ChargeId>1</ChargeId>
        <ChargeName>sample string 2</ChargeName>
      </Charges>
      <Slno>1</Slno>
    </ParishServiceChargesByIdVM>
  </Charges>
  <CreateIp>sample string 3</CreateIp>
  <CreateUser>2</CreateUser>
  <Service>
    <ServiceId>1</ServiceId>
    <ServiceName>sample string 2</ServiceName>
  </Service>
</ParishServiceChargesSaveVM>

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.