private void SetPermissions(int[] permissions) { if (permissions.Any()) { Session[SessionHelper.Permissions] = PermissionManager.GetPermissions(permissions); } }