POST api/User/AddOrUpdate

Request Information

URI Parameters

None.

Body Parameters

UserModel
NameDescriptionTypeAdditional information
RoleId

string

None.

Role

string

None.

Id

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

PhoneNumber

string

None.

Address

string

None.

City

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleId": "sample string 1",
  "Role": "sample string 2",
  "Id": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Email": "sample string 6",
  "PhoneNumber": "sample string 7",
  "Address": "sample string 8",
  "City": "sample string 9",
  "IsActive": true,
  "IsDeleted": true,
  "CreatedBy": "sample string 12",
  "ModifiedBy": "sample string 13"
}

application/xml, text/xml

Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.User">
  <Address>sample string 8</Address>
  <City>sample string 9</City>
  <CreatedBy>sample string 12</CreatedBy>
  <Email>sample string 6</Email>
  <FirstName>sample string 4</FirstName>
  <Id>sample string 3</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <LastName>sample string 5</LastName>
  <ModifiedBy>sample string 13</ModifiedBy>
  <PhoneNumber>sample string 7</PhoneNumber>
  <Role>sample string 2</Role>
  <RoleId>sample string 1</RoleId>
</UserModel>

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.