예제 #1
0
        public async Task <List <GoodCellModel> > SearchComputerPartsGoodCells(ComputerPartsSelector computerPartsSelector)
        {
            var normalParameters = _parametersCreator.GetComputerPartsParameters(computerPartsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerPart>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerParts", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
예제 #2
0
        public async Task <GoodsInformation <string> > SearchComputerPartsInformation(ComputerPartsSelector computerPartsSelector)
        {
            var normalParameters = _parametersCreator.GetComputerPartsParameters(computerPartsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerPart>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerParts", normalParameters);

            var questions = _questionsGrouper.GroupComputerParts(computerPartsSelector, goodsDbInformation.DBQuestions);

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