Exemplo n.º 1
0
        public async Task <List <GoodCellModel> > SearchGoodCells(GoodsSelector goodsSelector)
        {
            var parameters         = _parametersCreator.GetGoodsParameters(goodsSelector).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoods", parameters);

            return(goodsDbInformation.GoodCells);
        }
Exemplo n.º 2
0
        public async Task <GoodsInformation <string> > SearchGoodsInformation(GoodsSelector goodsSelector)
        {
            var parameters         = _parametersCreator.GetGoodsParameters(goodsSelector).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoods", parameters);

            var questions = _questionsGrouper.GroupGoods(goodsSelector, goodsDbInformation.DBQuestions);

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