Example #1
0
        private async Task <Models.LearningAimModel> IndexSeek(string searchTerm)
        {
            Models.LearningAimModel learningAim;
            var result = await _azureService.GetAsync <LearningAimModel>(_learningDeliveryIndex, searchTerm);

            learningAim = _mapper.Map(result);
            return(learningAim);
        }
Example #2
0
        public async Task <Models.StandardModel> GetStandard(string standardCode)
        {
            Models.StandardModel standard;
            var result = await _azureService.GetAsync <StandardModel>(_standardIndexService, standardCode);

            standard = _mapper.Map(result);
            return(standard);
        }
        public async Task <Models.LookUpModel> GetLookups()
        {
            Models.LookUpModel lookups;

            var result = await _azureService.GetAsync <LookUpModel>(_lookupIndexService, LookupIndexKey);

            lookups = _mapper.Map(result);

            return(lookups);
        }
        public async Task <Models.FrameworkModel> GetFramework(int frameworkCode, int programType, int pathwayCode)
        {
            Models.FrameworkModel framework;

            var key    = $"{frameworkCode}-{programType}-{pathwayCode}";
            var result = await _azureService.GetAsync <FrameworkModel>(_frameworkIndexService, key);

            framework = _mapper.Map(result);

            return(framework);
        }