POST api/ParishFamilyMemberLifeEvent/Save

Request Information

URI Parameters

None.

Body Parameters

ParishFamilyMemberLifeEventSaveVM
NameDescriptionTypeAdditional information
MemberId

integer

Required

LifeEvents

Collection of ParishFamilyMemberLifeEventsVM

Required

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "MemberId": 1,
  "LifeEvents": [
    {
      "LifeEvent": {
        "LifeEventId": 1,
        "LifeEventName": "sample string 2",
        "AllowMultiple": "sample string 3"
      },
      "LifeEventDetails": [
        {
          "Slno": 1,
          "EventDate": "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
          },
          "Clergy": {
            "ClergyId": 1,
            "ClergyName": "sample string 2",
            "Prefix": {
              "PrefixId": 1,
              "PrefixName": "sample string 2"
            },
            "Address": "sample string 3",
            "ClergyStatus": "sample string 4",
            "DOB": "sample string 5",
            "DeaconDate": "sample string 6",
            "ClergyCategoryId": 7,
            "ClergyTypeId": 8
          },
          "Place": "sample string 3",
          "Remarks": "sample string 4",
          "Status": "sample string 5"
        },
        {
          "Slno": 1,
          "EventDate": "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
          },
          "Clergy": {
            "ClergyId": 1,
            "ClergyName": "sample string 2",
            "Prefix": {
              "PrefixId": 1,
              "PrefixName": "sample string 2"
            },
            "Address": "sample string 3",
            "ClergyStatus": "sample string 4",
            "DOB": "sample string 5",
            "DeaconDate": "sample string 6",
            "ClergyCategoryId": 7,
            "ClergyTypeId": 8
          },
          "Place": "sample string 3",
          "Remarks": "sample string 4",
          "Status": "sample string 5"
        }
      ]
    },
    {
      "LifeEvent": {
        "LifeEventId": 1,
        "LifeEventName": "sample string 2",
        "AllowMultiple": "sample string 3"
      },
      "LifeEventDetails": [
        {
          "Slno": 1,
          "EventDate": "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
          },
          "Clergy": {
            "ClergyId": 1,
            "ClergyName": "sample string 2",
            "Prefix": {
              "PrefixId": 1,
              "PrefixName": "sample string 2"
            },
            "Address": "sample string 3",
            "ClergyStatus": "sample string 4",
            "DOB": "sample string 5",
            "DeaconDate": "sample string 6",
            "ClergyCategoryId": 7,
            "ClergyTypeId": 8
          },
          "Place": "sample string 3",
          "Remarks": "sample string 4",
          "Status": "sample string 5"
        },
        {
          "Slno": 1,
          "EventDate": "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
          },
          "Clergy": {
            "ClergyId": 1,
            "ClergyName": "sample string 2",
            "Prefix": {
              "PrefixId": 1,
              "PrefixName": "sample string 2"
            },
            "Address": "sample string 3",
            "ClergyStatus": "sample string 4",
            "DOB": "sample string 5",
            "DeaconDate": "sample string 6",
            "ClergyCategoryId": 7,
            "ClergyTypeId": 8
          },
          "Place": "sample string 3",
          "Remarks": "sample string 4",
          "Status": "sample string 5"
        }
      ]
    }
  ],
  "CreateUser": 2,
  "CreateIp": "sample string 3"
}

application/xml, text/xml

Sample:
<ParishFamilyMemberLifeEventSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CreateIp>sample string 3</CreateIp>
  <CreateUser>2</CreateUser>
  <LifeEvents>
    <ParishFamilyMemberLifeEventsVM>
      <LifeEvent>
        <AllowMultiple>sample string 3</AllowMultiple>
        <LifeEventId>1</LifeEventId>
        <LifeEventName>sample string 2</LifeEventName>
      </LifeEvent>
      <LifeEventDetails>
        <ParishFamilyMemberLifeEventsDtlsVM>
          <Clergy>
            <Address>sample string 3</Address>
            <ClergyCategoryId>7</ClergyCategoryId>
            <ClergyId>1</ClergyId>
            <ClergyName>sample string 2</ClergyName>
            <ClergyStatus>sample string 4</ClergyStatus>
            <ClergyTypeId>8</ClergyTypeId>
            <DOB>sample string 5</DOB>
            <DeaconDate>sample string 6</DeaconDate>
            <Prefix>
              <PrefixId>1</PrefixId>
              <PrefixName>sample string 2</PrefixName>
            </Prefix>
          </Clergy>
          <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>
          <EventDate>sample string 2</EventDate>
          <Place>sample string 3</Place>
          <Remarks>sample string 4</Remarks>
          <Slno>1</Slno>
          <Status>sample string 5</Status>
        </ParishFamilyMemberLifeEventsDtlsVM>
        <ParishFamilyMemberLifeEventsDtlsVM>
          <Clergy>
            <Address>sample string 3</Address>
            <ClergyCategoryId>7</ClergyCategoryId>
            <ClergyId>1</ClergyId>
            <ClergyName>sample string 2</ClergyName>
            <ClergyStatus>sample string 4</ClergyStatus>
            <ClergyTypeId>8</ClergyTypeId>
            <DOB>sample string 5</DOB>
            <DeaconDate>sample string 6</DeaconDate>
            <Prefix>
              <PrefixId>1</PrefixId>
              <PrefixName>sample string 2</PrefixName>
            </Prefix>
          </Clergy>
          <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>
          <EventDate>sample string 2</EventDate>
          <Place>sample string 3</Place>
          <Remarks>sample string 4</Remarks>
          <Slno>1</Slno>
          <Status>sample string 5</Status>
        </ParishFamilyMemberLifeEventsDtlsVM>
      </LifeEventDetails>
    </ParishFamilyMemberLifeEventsVM>
    <ParishFamilyMemberLifeEventsVM>
      <LifeEvent>
        <AllowMultiple>sample string 3</AllowMultiple>
        <LifeEventId>1</LifeEventId>
        <LifeEventName>sample string 2</LifeEventName>
      </LifeEvent>
      <LifeEventDetails>
        <ParishFamilyMemberLifeEventsDtlsVM>
          <Clergy>
            <Address>sample string 3</Address>
            <ClergyCategoryId>7</ClergyCategoryId>
            <ClergyId>1</ClergyId>
            <ClergyName>sample string 2</ClergyName>
            <ClergyStatus>sample string 4</ClergyStatus>
            <ClergyTypeId>8</ClergyTypeId>
            <DOB>sample string 5</DOB>
            <DeaconDate>sample string 6</DeaconDate>
            <Prefix>
              <PrefixId>1</PrefixId>
              <PrefixName>sample string 2</PrefixName>
            </Prefix>
          </Clergy>
          <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>
          <EventDate>sample string 2</EventDate>
          <Place>sample string 3</Place>
          <Remarks>sample string 4</Remarks>
          <Slno>1</Slno>
          <Status>sample string 5</Status>
        </ParishFamilyMemberLifeEventsDtlsVM>
        <ParishFamilyMemberLifeEventsDtlsVM>
          <Clergy>
            <Address>sample string 3</Address>
            <ClergyCategoryId>7</ClergyCategoryId>
            <ClergyId>1</ClergyId>
            <ClergyName>sample string 2</ClergyName>
            <ClergyStatus>sample string 4</ClergyStatus>
            <ClergyTypeId>8</ClergyTypeId>
            <DOB>sample string 5</DOB>
            <DeaconDate>sample string 6</DeaconDate>
            <Prefix>
              <PrefixId>1</PrefixId>
              <PrefixName>sample string 2</PrefixName>
            </Prefix>
          </Clergy>
          <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>
          <EventDate>sample string 2</EventDate>
          <Place>sample string 3</Place>
          <Remarks>sample string 4</Remarks>
          <Slno>1</Slno>
          <Status>sample string 5</Status>
        </ParishFamilyMemberLifeEventsDtlsVM>
      </LifeEventDetails>
    </ParishFamilyMemberLifeEventsVM>
  </LifeEvents>
  <MemberId>1</MemberId>
</ParishFamilyMemberLifeEventSaveVM>

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.