public List <Indicator> GetIndicatorsByUser(User user) { List <UserIndicator> userIndicator = userIndicatorRepository.GetIndicatorsByUser(user).ToList(); List <Indicator> indicators = new List <Indicator>(); foreach (UserIndicator ui in userIndicator) { if (ui.user == user.ID) { indicators.Add(iRepository.GetByID(ui.indicator)); } } return(indicators); }