public void EditRtCost() { ISalaryService salaryService = new SalaryServiceClient(); EditRdCostInfo rdCostInfo = new EditRdCostInfo() { AutoKey = 8, EmployeeId = "H000006", DateB = new DateTime(2020, 09, 12), DateE = new DateTime(2020, 10, 10), UseRatio = 0.5M, RdNobrType = "002", RdCode = "RD02", Note = "", Key_Date = DateTime.Now, Key_Man = "qwe" }; var Introduction = salaryService.EditRdCost(rdCostInfo); string json = JsonConvert.SerializeObject(Introduction); Console.WriteLine(json.ToString()); }