コード例 #1
0
        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)));
        }
コード例 #2
0
 private HashSet <long> GetParentUserGroups()
 {
     return(_userGroupRepository.GetParentGroups(GetUserGroupId()));
 }