public async Task <List <GoodCellModel> > SearchFlashDrivesGoodCells(FlashDrivesSelector flashDrivesSelector) { var normalParameters = _parametersCreator.GetFlashDrivesParameters(flashDrivesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <FlashDrive>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetFlashDrives", normalParameters); return(goodsDbInformation.GoodCells); }
public async Task <GoodsInformation <string> > SearchFlashDrivesInformation(FlashDrivesSelector flashDrivesSelector) { var normalParameters = _parametersCreator.GetFlashDrivesParameters(flashDrivesSelector) .Append(_parametersCreator.CreateDiscriminatorParameter <FlashDrive>()).ToArray(); var goodsDbInformation = await _context.GetGoodsDbInformation("GetFlashDrives", normalParameters); var questions = _questionsGrouper.GroupFlashDrives(flashDrivesSelector, goodsDbInformation.DBQuestions); return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions)); }