int id = -1; int.TryParse(Content.Request["ID"], out id); string name = Content.Request["Name"]; string leadID = Content.Request["LeadID"]; //得到传过来的描述信息数据并赋值给变量 string describeInfo = Content.Request["DescribeInfo"]; //创建一个实体类 DepartmentAttribute department = new DepartmentAttribute { ID = id, Name = name, LeadID = leadID, DescribeInfo = describeInfo };