Ejemplo n.º 1
0
        public async Task <List <GoodCellModel> > SearchComputerDrivesGoodCells(ComputerDrivesSelector computerDrivesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerDrivesParameters(computerDrivesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerDrive>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerDrives", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Ejemplo n.º 2
0
        public async Task <GoodsInformation <string> > SearchComputerDrivesInformation(ComputerDrivesSelector computerDrivesSelector)
        {
            var normalParameters = _parametersCreator.GetComputerDrivesParameters(computerDrivesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerDrive>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerDrives", normalParameters);

            var questions = _questionsGrouper.GroupComputerDrives(computerDrivesSelector, goodsDbInformation.DBQuestions);

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