public async Task <ActionResult <Response <List <Permission> > > > GetPermissionsAsync(int entityId)
        {
            try
            {
                var authorizationResult = await authorizationService.AuthorizeAsync(User, treeBL.GetTreeEntity(entityId), new OwnerRequirement());

                if (authorizationResult.Succeeded)
                {
                    return(new Response <List <Permission> >(permissionsBL.GetAllPermissionsForEntity(entityId)));
                }
                else
                {
                    return(new ForbidResult());
                }
            }
            catch (Exception ex)
            {
                return(new Response <List <Permission> >(ex));
            }
        }