public async Task <List <GoodCellModel> > SearchComputersGoodCells(ComputersSelector computersSelector) { var normalParameters = _parametersCreator.GetComputersParameters(computersSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <Computer>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputers", normalParameters); return(goodsDbInformation.GoodCells); }
public async Task <GoodsInformation <string> > SearchComputersInformation(ComputersSelector computersSelector) { var normalParameters = _parametersCreator.GetComputersParameters(computersSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <Computer>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputers", normalParameters); var questions = _questionsGrouper.GroupComputers(computersSelector, goodsDbInformation.DBQuestions); return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions)); }