public List <SqlParameter> GetComputerTechnologiesParameters(ComputerTechnologiesSelector computerTechnologiesSelector) { List <SqlParameter> sqlParameters = new List <SqlParameter>(); sqlParameters.AddRange(GetGoodsParameters(computerTechnologiesSelector)); return(sqlParameters); }
public ComputerTechnologiesInformationSearcherFactory(IGoodsInformationSearcher goodsInformationSearcher, IGoodCellsSearcher goodCellsSearcher, ICacheKeyCreator keyCreator, ComputerTechnologiesSelector computerTechnologiesSelector) { _goodsInformationSearcher = goodsInformationSearcher; _goodCellsSearcher = goodCellsSearcher; _keyCreator = keyCreator; _computerTechnologiesSelector = computerTechnologiesSelector; }
public async Task <GoodsInformation <string> > SearchComputerTechnologiesInformation(ComputerTechnologiesSelector computerTechnologiesSelector) { var normalParameters = _parametersCreator.GetComputerTechnologiesParameters(computerTechnologiesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerTechnology>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerTechnologies", normalParameters); var questions = _questionsGrouper.GroupComputerTechnologies(computerTechnologiesSelector, goodsDbInformation.DBQuestions); return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions)); }
public async Task <List <GoodCellModel> > SearchComputerTechnologiesGoodCells(ComputerTechnologiesSelector computerTechnologiesSelector) { var normalParameters = _parametersCreator.GetComputerTechnologiesParameters(computerTechnologiesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <ComputerTechnology>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetComputerTechnologies", normalParameters); return(goodsDbInformation.GoodCells); }
public async Task <GoodsInformation <string> > GetComputerTechnologiesInformation([FromBody] ComputerTechnologiesSelector computerTechnologiesSelector) { return(await _goodsInformationCreator.CreateGoodsInformation(computerTechnologiesSelector, new ComputerTechnologiesInformationSearcherFactory(_goodsInformationSearcher, _goodCellsSearcher, _keyCreator, computerTechnologiesSelector))); }
public List <QuestionsBase <string> > GroupComputerTechnologies(ComputerTechnologiesSelector computerTechnologiesSelector, List <DBQuestionBase> dBQuestions) { return(GroupGoods(computerTechnologiesSelector, dBQuestions)); }