コード例 #1
0
        public AjaxResult Put([FromBody] Customer _customer)
        {
            var _ajaxResult = new AjaxResult();

            try
            {
                _cusDL.EditCus(_customer);
            }
            catch (Exception ex)
            {
                _ajaxResult.Success = false;
                _ajaxResult.Message = "Lỗi put dữ liếu";
                _ajaxResult.Data    = ex;
            }
            return(_ajaxResult);
        }