Example #1
0
        public async Task <List <GoodCellModel> > SearchKeyboardsGoodCells(KeyboardsSelector keyboardsSelector)
        {
            var normalParameters = _parametersCreator.GetKeyboardsParameters(keyboardsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Keyboard>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetKeyboards", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Example #2
0
        public async Task <GoodsInformation <string> > SearchKeyboardsInformation(KeyboardsSelector keyboardsSelector)
        {
            var normalParameters = _parametersCreator.GetKeyboardsParameters(keyboardsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Keyboard>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetKeyboards", normalParameters);

            var questions = _questionsGrouper.GroupKeyboards(keyboardsSelector, goodsDbInformation.DBQuestions);

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