public async Task <List <GoodCellModel> > SearchComputerAccessoriesGoodCells(ComputerAccessoriesSelector computerAccessoriesSelector) { var normalParameters = _parametersCreator.GetComputerAccessoriesParameters(computerAccessoriesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerAccessory>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerAccessories", normalParameters); return(goodsDbInformation.GoodCells); }
public async Task <GoodsInformation <string> > SearchComputerAccessoriesInformation(ComputerAccessoriesSelector computerAccessoriesSelector) { var normalParameters = _parametersCreator.GetComputerAccessoriesParameters(computerAccessoriesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerAccessory>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerAccessories", normalParameters); var questions = _questionsGrouper.GroupComputerAccessories(computerAccessoriesSelector, goodsDbInformation.DBQuestions); return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions)); }