コード例 #1
0
        public async Task <List <GoodCellModel> > SearchGoodsNameGoodCells(GoodsSelectorName goodsSelectorName)
        {
            var parameters         = _parametersCreator.GetGoodsParametersByName(goodsSelectorName).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoodsByName", parameters);

            return(goodsDbInformation.GoodCells);
        }
コード例 #2
0
        public async Task <GoodsInformation <string> > SearchGoodsNameInformation(GoodsSelectorName goodsSelectorName)
        {
            var parameters         = _parametersCreator.GetGoodsParametersByName(goodsSelectorName).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoodsByName", parameters);

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

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