public IActionResult BarChartOrdersAndReturns() { int cntOrders = ordersService.Get().Count(); int cntReturns = returnsService.Get().Count(); var lstModel = new List <SimpleReportViewModel>(); lstModel.Add(new SimpleReportViewModel { DimensionOne = "Orders", Quantity = cntOrders }); lstModel.Add(new SimpleReportViewModel { DimensionOne = "Returns", Quantity = cntReturns }); return(View(lstModel)); }
public ActionResult Index() { return(View(returnsService.Get())); }