Example #1
0
        public IActionResult DelSupplier(int id)
        {
            if (!_permissionService.Authorize("DeleteSupplier"))
            {
                return(Error("没有此权限!"));
            }
            var result = _purchasingService.DeleteSuppllier(id);

            if (result)
            {
                return(Success());
            }
            else
            {
                return(Error());
            }
        }