Beispiel #1
0
        public async Task <List <GoodCellModel> > SearchComputerAccessoriesGoodCells(ComputerAccessoriesSelector computerAccessoriesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerAccessoriesParameters(computerAccessoriesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerAccessory>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerAccessories", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Beispiel #2
0
        public async Task <GoodsInformation <string> > SearchComputerAccessoriesInformation(ComputerAccessoriesSelector computerAccessoriesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerAccessoriesParameters(computerAccessoriesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerAccessory>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerAccessories", normalParameters);

            var questions = _questionsGrouper.GroupComputerAccessories(computerAccessoriesSelector, goodsDbInformation.DBQuestions);

            return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions));
        }