diff --git a/c#/UpdateBug.cs b/c#/UpdateBug.cs new file mode 100644 index 0000000000000000000000000000000000000000..d4a878047433b554526aba6eb22b0e7bd10736c7 --- /dev/null +++ b/c#/UpdateBug.cs @@ -0,0 +1,16 @@ +try +{ + if(args.IsNull()) + { + return "参数不能为空"; + } + if(args.Id <= 0) + { + return "Id不能为空"; + } + var info = _people.Get(args.Id); + if(info != null) + { + info.Id = args.Id; // 更新人员Id也更新了 + } +} \ No newline at end of file