Пример #1
0
 public AppRoleCollection GetAppRole()
 {
     if (this._roleCol == null)
     {
         IDictionary <int, AppRolePair> roles = this._userRepository.GetUserRoles(this.Id);
         this._roleCol = new AppRoleCollection(this.Id, roles);
     }
     return(this._roleCol);
 }
Пример #2
0
        public AppRoleCollection GetAppRole()
        {
            if (_roleCol == null)
            {
                var roles = _userRepository.GetUserRoles(Id);
                _roleCol = new AppRoleCollection(Id, roles);
            }

            return(_roleCol);
        }