Exemple #1
0
        public async Task <List <GoodCellModel> > SearchFlashDrivesGoodCells(FlashDrivesSelector flashDrivesSelector)
        {
            var normalParameters = _parametersCreator.GetFlashDrivesParameters(flashDrivesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <FlashDrive>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetFlashDrives", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Exemple #2
0
        public async Task <GoodsInformation <string> > SearchFlashDrivesInformation(FlashDrivesSelector flashDrivesSelector)
        {
            var normalParameters = _parametersCreator.GetFlashDrivesParameters(flashDrivesSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <FlashDrive>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetFlashDrives", normalParameters);

            var questions = _questionsGrouper.GroupFlashDrives(flashDrivesSelector, goodsDbInformation.DBQuestions);

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