public async Task <IQueryable <Node> > EnableNode( [Required] Guid node, [GlobalState("ClaimsPrincipal")] ClaimsPrincipal user ) { var deploymentAuth = await authorizationService.AuthorizeAsync(user, node, new TenantNodeRequirement()); if (deploymentAuth.Failure != null) { throw new UnauthorizedAccessException(); } await nodeService.Enable(node); return(ctxFactiry.CreateDbContext().Nodes.Where(x => x.Id == node)); }