POST api/Department/CreateAndUpdateSave

新增,修改 保存

Request Information

URI Parameters

None.

Body Parameters

DAL.l_department
NameDescriptionTypeAdditional information
Id

integer

None.

CompanyId

integer

None.

Name

string

None.

CreateTime

date

None.

ParentId

integer

None.

ManageUserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CompanyId": 2,
  "Name": "sample string 3",
  "CreateTime": "2026-06-09T21:15:11.8388982+08:00",
  "ParentId": 1,
  "ManageUserId": 1
}

application/xml, text/xml

Sample:
<l_department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAL">
  <CompanyId>2</CompanyId>
  <CreateTime>2026-06-09T21:15:11.8388982+08:00</CreateTime>
  <Id>1</Id>
  <ManageUserId>1</ManageUserId>
  <Name>sample string 3</Name>
  <ParentId>1</ParentId>
</l_department>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Web.Http.Results.JsonResultOfDAL.HandleResult
NameDescriptionTypeAdditional information
Content

DAL.HandleResult

None.

SerializerSettings

Newtonsoft.Json.JsonSerializerSettings

None.

Encoding

System.Text.Encoding

None.

Request

System.Net.Http.HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.