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