public async Task <List <GoodCellModel> > SearchGoodsNameGoodCells(GoodsSelectorName goodsSelectorName) { var parameters = _parametersCreator.GetGoodsParametersByName(goodsSelectorName).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetGoodsByName", parameters); return(goodsDbInformation.GoodCells); }
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)); }