public IEnumerable <ScenarioDTO> ChildrenScenarios() { var children = _userGroupRepository.GetChildrenGroups(GetUserGroupId()); return(_scenarioRepository.Scenarios.Include(x => x.UserGroup).Where(x => children.Contains(x.UserGroupId)).Select(x => _mapper.Map(x))); }
private HashSet <long> GetChildrenUserGroups() { return(_userGroupRepository.GetChildrenGroups(GetUserGroupId())); }