private List <LabelValue> GetVariables(Guid subjectId) { var filters = _filterRepository.FindMany(filter => filter.SubjectId == subjectId) .Select(filter => new LabelValue( string.IsNullOrWhiteSpace(filter.Hint) ? filter.Label : $"{filter.Label} - {filter.Hint}", filter.Name)) .ToList(); var indicators = _indicatorRepository.GetIndicators(subjectId) .Select(indicator => new LabelValue(indicator.Label, indicator.Name)); return(filters.Concat(indicators) .OrderBy(labelValue => labelValue.Value) .ToList()); }