예제 #1
0
        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);
        }
예제 #2
0
        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);
        }