POST api/UserPermission/Save

Request Information

URI Parameters

None.

Body Parameters

Collection of FormRoleEmployee
NameDescriptionTypeAdditional information
RoleId

integer

None.

EmployeeId

integer

None.

EmployeeCode

string

None.

NameThRole

string

None.

NameEnRole

string

None.

IsActive

boolean

None.

Email

string

None.

NameThEmployee

string

None.

NameEnEmployee

string

None.

IsDelete

boolean

None.

Seq

integer

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "RoleId": 1,
    "EmployeeId": 2,
    "EmployeeCode": "sample string 3",
    "NameThRole": "sample string 4",
    "NameEnRole": "sample string 5",
    "IsActive": true,
    "Email": "sample string 7",
    "NameThEmployee": "sample string 8",
    "NameEnEmployee": "sample string 9",
    "IsDelete": true,
    "Seq": 11,
    "userPrincipalName": "sample string 12",
    "connectionString": "sample string 13",
    "SecretId": null
  },
  {
    "RoleId": 1,
    "EmployeeId": 2,
    "EmployeeCode": "sample string 3",
    "NameThRole": "sample string 4",
    "NameEnRole": "sample string 5",
    "IsActive": true,
    "Email": "sample string 7",
    "NameThEmployee": "sample string 8",
    "NameEnEmployee": "sample string 9",
    "IsDelete": true,
    "Seq": 11,
    "userPrincipalName": "sample string 12",
    "connectionString": "sample string 13",
    "SecretId": null
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.