예제 #1
0
        public async Task <GoodsInformation <string> > SearchComputerTechnologiesInformation(ComputerTechnologiesSelector computerTechnologiesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerTechnologiesParameters(computerTechnologiesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerTechnology>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerTechnologies", normalParameters);

            var questions = _questionsGrouper.GroupComputerTechnologies(computerTechnologiesSelector, goodsDbInformation.DBQuestions);

            return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions));
        }
예제 #2
0
        public async Task <List <GoodCellModel> > SearchComputerTechnologiesGoodCells(ComputerTechnologiesSelector computerTechnologiesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerTechnologiesParameters(computerTechnologiesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerTechnology>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerTechnologies", normalParameters);

            return(goodsDbInformation.GoodCells);
        }