public IEnumerable <ScenarioDTO> ParentScenarios() { var parents = _userGroupRepository.GetParentGroups(GetUserGroupId()); return(_scenarioRepository.Scenarios.Include(x => x.UserGroup).Where(x => parents.Contains(x.UserGroupId)).Select(x => _mapper.Map(x))); }
private HashSet <long> GetParentUserGroups() { return(_userGroupRepository.GetParentGroups(GetUserGroupId())); }