POST api/EmployeeFamily/Save

Request Information

URI Parameters

None.

Body Parameters

EmployeeFamilySaveVM
NameDescriptionTypeAdditional information
EmployeeId

integer

Required

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

FamilyList

Collection of EmployeeFamilyByIdVM

Required

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "CreateUser": 2,
  "CreateIp": "sample string 3",
  "FamilyList": [
    {
      "Slno": 1,
      "Relation": {
        "RelationId": 1,
        "RelationName": "sample string 2"
      },
      "FamilyCode": "sample string 2",
      "Prefix": {
        "PrefixId": 1,
        "PrefixName": "sample string 2"
      },
      "MemberName": "sample string 3",
      "Dob": "sample string 4",
      "IsMarried": "sample string 5",
      "IsEmployeed": "sample string 6",
      "EmployeedFrom": "sample string 7",
      "EmploymentDetails": "sample string 8",
      "Status": "sample string 9"
    },
    {
      "Slno": 1,
      "Relation": {
        "RelationId": 1,
        "RelationName": "sample string 2"
      },
      "FamilyCode": "sample string 2",
      "Prefix": {
        "PrefixId": 1,
        "PrefixName": "sample string 2"
      },
      "MemberName": "sample string 3",
      "Dob": "sample string 4",
      "IsMarried": "sample string 5",
      "IsEmployeed": "sample string 6",
      "EmployeedFrom": "sample string 7",
      "EmploymentDetails": "sample string 8",
      "Status": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<EmployeeFamilySaveVM 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>
  <EmployeeId>1</EmployeeId>
  <FamilyList>
    <EmployeeFamilyByIdVM>
      <Dob>sample string 4</Dob>
      <EmployeedFrom>sample string 7</EmployeedFrom>
      <EmploymentDetails>sample string 8</EmploymentDetails>
      <FamilyCode>sample string 2</FamilyCode>
      <IsEmployeed>sample string 6</IsEmployeed>
      <IsMarried>sample string 5</IsMarried>
      <MemberName>sample string 3</MemberName>
      <Prefix>
        <PrefixId>1</PrefixId>
        <PrefixName>sample string 2</PrefixName>
      </Prefix>
      <Relation>
        <RelationId>1</RelationId>
        <RelationName>sample string 2</RelationName>
      </Relation>
      <Slno>1</Slno>
      <Status>sample string 9</Status>
    </EmployeeFamilyByIdVM>
    <EmployeeFamilyByIdVM>
      <Dob>sample string 4</Dob>
      <EmployeedFrom>sample string 7</EmployeedFrom>
      <EmploymentDetails>sample string 8</EmploymentDetails>
      <FamilyCode>sample string 2</FamilyCode>
      <IsEmployeed>sample string 6</IsEmployeed>
      <IsMarried>sample string 5</IsMarried>
      <MemberName>sample string 3</MemberName>
      <Prefix>
        <PrefixId>1</PrefixId>
        <PrefixName>sample string 2</PrefixName>
      </Prefix>
      <Relation>
        <RelationId>1</RelationId>
        <RelationName>sample string 2</RelationName>
      </Relation>
      <Slno>1</Slno>
      <Status>sample string 9</Status>
    </EmployeeFamilyByIdVM>
  </FamilyList>
</EmployeeFamilySaveVM>

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.