POST api/ParishServiceEntry/Save

Request Information

URI Parameters

None.

Body Parameters

ParishServiceEntrySaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

FinYearId

integer

Required

RequestId

integer

None.

RegisterEntryType

ParishRegisterEntryTypeLookupVM

Required

Establishment

EstablishmentLookup

Required

ServiceDate

string

Required

ServiceTime

string

String length: inclusive between 0 and 8

Service

ParishServiceLookupVM

Required

ServiceDescription

string

String length: inclusive between 0 and 200

Refno

string

Required

String length: inclusive between 0 and 30

RegNoPre

string

String length: inclusive between 0 and 20

RegNo

integer

Required

MemberId

integer

None.

MemberName

string

String length: inclusive between 0 and 100

MemberAddress

string

String length: inclusive between 0 and 300

OfficiantId

integer

None.

OfficiantName

string

String length: inclusive between 0 and 100

PreacherId

integer

None.

PreacherName

string

String length: inclusive between 0 and 100

CelebrantId

integer

None.

CelebrantName

string

String length: inclusive between 0 and 100

CongregationNos

integer

None.

CommunicantsNos

integer

None.

Offertory

decimal number

None.

ChargesTotal

decimal number

None.

Amount

decimal number

None.

Remarks

string

String length: inclusive between 0 and 200

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

ChargeDetails

Collection of ParishServiceEntryChargesVM

None.

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "FinYearId": 2,
  "RequestId": 3,
  "RegisterEntryType": {
    "TypeId": 1,
    "TypeName": "sample string 2"
  },
  "Establishment": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  },
  "ServiceDate": "sample string 4",
  "ServiceTime": "sample string 5",
  "Service": {
    "ServiceId": 1,
    "ServiceName": "sample string 2"
  },
  "ServiceDescription": "sample string 6",
  "Refno": "sample string 7",
  "RegNoPre": "sample string 8",
  "RegNo": 9,
  "MemberId": 10,
  "MemberName": "sample string 11",
  "MemberAddress": "sample string 12",
  "OfficiantId": 13,
  "OfficiantName": "sample string 14",
  "PreacherId": 15,
  "PreacherName": "sample string 16",
  "CelebrantId": 17,
  "CelebrantName": "sample string 18",
  "CongregationNos": 19,
  "CommunicantsNos": 20,
  "Offertory": 21.0,
  "ChargesTotal": 22.0,
  "Amount": 23.0,
  "Remarks": "sample string 24",
  "CreateUser": 25,
  "CreateIp": "sample string 26",
  "ChargeDetails": [
    {
      "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:
<ParishServiceEntrySaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Amount>23</Amount>
  <BookId>1</BookId>
  <CelebrantId>17</CelebrantId>
  <CelebrantName>sample string 18</CelebrantName>
  <ChargeDetails>
    <ParishServiceEntryChargesVM>
      <Amount>2</Amount>
      <Charges>
        <ChargeId>1</ChargeId>
        <ChargeName>sample string 2</ChargeName>
      </Charges>
      <Slno>1</Slno>
    </ParishServiceEntryChargesVM>
    <ParishServiceEntryChargesVM>
      <Amount>2</Amount>
      <Charges>
        <ChargeId>1</ChargeId>
        <ChargeName>sample string 2</ChargeName>
      </Charges>
      <Slno>1</Slno>
    </ParishServiceEntryChargesVM>
  </ChargeDetails>
  <ChargesTotal>22</ChargesTotal>
  <CommunicantsNos>20</CommunicantsNos>
  <CongregationNos>19</CongregationNos>
  <CreateIp>sample string 26</CreateIp>
  <CreateUser>25</CreateUser>
  <Establishment>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </Establishment>
  <FinYearId>2</FinYearId>
  <MemberAddress>sample string 12</MemberAddress>
  <MemberId>10</MemberId>
  <MemberName>sample string 11</MemberName>
  <Offertory>21</Offertory>
  <OfficiantId>13</OfficiantId>
  <OfficiantName>sample string 14</OfficiantName>
  <PreacherId>15</PreacherId>
  <PreacherName>sample string 16</PreacherName>
  <Refno>sample string 7</Refno>
  <RegNo>9</RegNo>
  <RegNoPre>sample string 8</RegNoPre>
  <RegisterEntryType>
    <TypeId>1</TypeId>
    <TypeName>sample string 2</TypeName>
  </RegisterEntryType>
  <Remarks>sample string 24</Remarks>
  <RequestId>3</RequestId>
  <Service>
    <ServiceId>1</ServiceId>
    <ServiceName>sample string 2</ServiceName>
  </Service>
  <ServiceDate>sample string 4</ServiceDate>
  <ServiceDescription>sample string 6</ServiceDescription>
  <ServiceTime>sample string 5</ServiceTime>
</ParishServiceEntrySaveVM>

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.