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); }
public AppRoleCollection GetAppRole() { if (_roleCol == null) { var roles = _userRepository.GetUserRoles(Id); _roleCol = new AppRoleCollection(Id, roles); } return(_roleCol); }