Beispiel #1
0
        public ActionResult Inventory()
        {
            InventoryReportViewModel model = new InventoryReportViewModel();

            var reports = _reportsRepository.GetInventory();

            model.NewCarsReports = reports.Where(c => c.IsNew == true);

            model.UsedCarsReports = reports.Where(c => c.IsNew == false);

            return(View(model));
        }