public List <Service> GetAllAvailableServices() { var clinkerServiceIds = new ClinkerRepository().GetClinkerServiceIds(); var availableServices = new List <Service>(); foreach (var serviceId in clinkerServiceIds) { availableServices.Add(_services.First(service => service.Id == serviceId)); } return(availableServices); }
public List <Interest> GetAllRepresentedInterests() { List <Guid> clinkerInterestIds = new ClinkerRepository().GetClinkerInterestIds(); List <Interest> availableInterests = new List <Interest>(); foreach (Guid interestId in clinkerInterestIds) { availableInterests.Add(_interest.First(interest => interest.Id == interestId)); } return(availableInterests); }