예제 #1
0
        public static void UpdateSueetieRole(bool isGroupAdminRole, bool isGroupUserRole, bool isBlogOwnerRole, string RoleName)
        {
            var provider = SueetieDataProvider.LoadProvider();
            var _role    = new SueetieRole
            {
                RoleName         = RoleName,
                IsGroupUserRole  = isGroupUserRole,
                IsGroupAdminRole = isGroupAdminRole,
                IsBlogOwnerRole  = isBlogOwnerRole
            };

            provider.UpdateSueetieRole(_role);
            ClearRolesListCache();
        }
예제 #2
0
        public static void CreateSueetieRole(SueetieRole sueetieRole)
        {
            var provider = SueetieDataProvider.LoadProvider();

            provider.CreateSueetieRole(sueetieRole);
        }