public async Task <List <GoodCellModel> > SearchGoodCells(GoodsSelector goodsSelector) { var parameters = _parametersCreator.GetGoodsParameters(goodsSelector).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoods", parameters); return(goodsDbInformation.GoodCells); }
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)); }