Ejemplo n.º 1
0
        public async Task <string> Delete(DeletePermissionInput input)
        {
            switch (input.Mold)
            {
            case Domain.Shared.Permissions.PermissionMold.Menu:
                await _menuDomainService.Delete(input.Id);

                break;

            case Domain.Shared.Permissions.PermissionMold.Operation:
                await _operationDomainService.Delete(input.Id);

                break;

            default:
                throw new BusinessException("PermissionType不正确");
            }
            return($"删除{input.Mold.GetDescription()}成功");
        }
        public async Task <DeletePermissionOutput> DeletePermission(DeletePermissionInput input)
        {
            _permissionManager.Delete(input.Id);

            return(new DeletePermissionOutput());
        }
Ejemplo n.º 3
0
        public DeletePermissionOutput DeletePermission(DeletePermissionInput input)
        {
            _permissionManager.Delete(input.Id);

            return(new DeletePermissionOutput());
        }