Exemplo n.º 1
0
        public async Task <List <GoodCellModel> > SearchComputersGoodCells(ComputersSelector computersSelector)
        {
            var normalParameters = _parametersCreator.GetComputersParameters(computersSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Computer>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputers", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Exemplo n.º 2
0
        public async Task <GoodsInformation <string> > SearchComputersInformation(ComputersSelector computersSelector)
        {
            var normalParameters = _parametersCreator.GetComputersParameters(computersSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Computer>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputers", normalParameters);

            var questions = _questionsGrouper.GroupComputers(computersSelector, goodsDbInformation.DBQuestions);

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