Beispiel #1
0
        public async Task <List <GoodCellModel> > SearchVideoCardsGoodCells(VideoCardsSelector videoCardsSelector)
        {
            var normalParameters = _parametersCreator.GetVideoCardsParameters(videoCardsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <VideoCard>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetVideoCards", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Beispiel #2
0
        public async Task <GoodsInformation <string> > SearchVideoCardsInformation(VideoCardsSelector videoCardsSelector)
        {
            var normalParameters = _parametersCreator.GetVideoCardsParameters(videoCardsSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <VideoCard>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetVideoCards", normalParameters);

            var questions = _questionsGrouper.GroupVideoCards(videoCardsSelector, goodsDbInformation.DBQuestions);

            return(new GoodsInformation <string>(_parametersCreator.GetCount(normalParameters), goodsDbInformation.GoodCells, questions));
        }