public virtual object Execute(CommandContext commandContext) { IAuthorizationManager authorizationManager = commandContext.AuthorizationManager; var authorization = authorizationManager.First(c => c.Id == AuthorizationId); EnsureUtil.EnsureNotNull("Authorization for Id '" + AuthorizationId + "' does not exist", "authorization", authorization); authorizationManager.Delete(authorization); return(null); }