Exemple #1
0
        public async Task <List <GoodCellModel> > SearchMiceGoodCells(MiceSelector miceSelector)
        {
            var normalParameters = _parametersCreator.GetMiceParameters(miceSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Mause>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetMice", normalParameters);

            return(goodsDbInformation.GoodCells);
        }
Exemple #2
0
        public async Task <GoodsInformation <string> > SearchMiceInformation(MiceSelector miceSelector)
        {
            var normalParameters = _parametersCreator.GetMiceParameters(miceSelector)
                                   .Append(_parametersCreator.CreateDiscriminatorParameter <Mause>()).ToArray();
            var goodsDbInformation = await _context.GetGoodsDbInformation("GetMice", normalParameters);

            var questions = _questionsGrouper.GroupMice(miceSelector, goodsDbInformation.DBQuestions);

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