Beispiel #1
0
        /// <summary>
        /// Получает пользователей, роли и возможности из БД.
        /// </summary>
        public void Refresh()
        {
            users = new List <User>(dataGetter.GetUsers());
            // cоздаем бонусные роли пользователям
            foreach (var u in users)
            {
                MakeBonusRole(u);
            }

            roles     = new List <Role>(dataGetter.GetRoles());
            abilities = new List <Ability>(dataGetter.GetAbilities());
        }