public AjaxResult Put([FromBody] Customer _ref) { var _ajaxResult = new AjaxResult(); try { db.Edit(_ref); } catch (Exception ex) { _ajaxResult.Success = false; _ajaxResult.Message = "fail"; _ajaxResult.Data = ex; } return(_ajaxResult); }