public async Task <IActionResult> FifthQuery(GenericIntViewModel <SupplyAvgCountViewModel> aupplyAvgCountIntVM) { if (ModelState.IsValid) { var supplyAvgCountDTOs = await _queryService.GetSupplierWhereAvgCountMoreThanUserVal(aupplyAvgCountIntVM.Integer); var supplyAvgCountVMs = _mapper.Map <IEnumerable <SupplyAvgCountDTO>, IEnumerable <SupplyAvgCountViewModel> >(supplyAvgCountDTOs); aupplyAvgCountIntVM.Source = supplyAvgCountVMs; } return(View(aupplyAvgCountIntVM)); }
public async Task <IActionResult> FourthQuery(GenericIntViewModel <ProductViewModel> intTitleValueVM) { if (ModelState.IsValid) { var productDTOs = await _queryService.GetProductTitleAndPriceThatWasSaledToday(intTitleValueVM.Integer); var productVMs = _mapper.Map <IEnumerable <ProductDTO>, IEnumerable <ProductViewModel> >(productDTOs); intTitleValueVM.Source = productVMs; } return(View(intTitleValueVM)); }
public async Task <IActionResult> EighthQuery(GenericIntViewModel <DateSumViewModel> supplyDateSumVM) { if (ModelState.IsValid) { var supplyAvgCountDTOs = await _queryService.GetTotalSupplyCountGroupedByDate(supplyDateSumVM.Integer); var supplyAvgCountVMs = _mapper.Map <IEnumerable <DateSumDTO>, IEnumerable <DateSumViewModel> >(supplyAvgCountDTOs); supplyDateSumVM.Source = supplyAvgCountVMs; } return(View(supplyDateSumVM)); }
public IActionResult FifthQuery() { var g = new GenericIntViewModel <SupplyAvgCountViewModel>(); return(View(g)); }
public IActionResult FourthQuery() { var g = new GenericIntViewModel <ProductViewModel>(); return(View(g)); }
public IActionResult EighthQuery() { var g = new GenericIntViewModel <DateSumViewModel>(); return(View(g)); }