예제 #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);
        }
예제 #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));
        }