public DataTable UserModify([FromBody] UserModify user) { DataTable dt = null; try { OperationData op = new OperationData(); dt = op.UserModify(user); } catch (Exception ex) { dt = new DataTable(); dt.Columns.Add("IsSuccess", typeof(string)); dt.Columns.Add("Error", typeof(string)); DataRow dr = dt.NewRow(); dr["IsSuccess"] = "false"; dr["Error"] = ex.Message; dt.Rows.Add(dr); Log.WriteError(ex, "修改用户信息(UserModify)"); } return(dt); }