Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }