예제 #1
0
        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);
        }