public async Task <List <GoodCellModel> > SearchComputerPartsGoodCells(ComputerPartsSelector computerPartsSelector) { var normalParameters = _parametersCreator.GetComputerPartsParameters(computerPartsSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerPart>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerParts", normalParameters); return(goodsDbInformation.GoodCells); }
public async Task <GoodsInformation <string> > SearchComputerPartsInformation(ComputerPartsSelector computerPartsSelector) { var normalParameters = _parametersCreator.GetComputerPartsParameters(computerPartsSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerPart>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerParts", normalParameters); var questions = _questionsGrouper.GroupComputerParts(computerPartsSelector, goodsDbInformation.DBQuestions); return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions)); }