Пример #1
0
        public ActionResult Statistics()
        {
            ViewBag.Tires  = CalculateStatistics.CountTiresInDb(db.Vehicles.ToList());
            ViewBag.Types  = CalculateStatistics.CountTypesInDb(db.Vehicles.ToList());
            ViewBag.Colors = CalculateStatistics.CountColorOfTypesInDb(db.Vehicles.ToList());
            ViewBag.Makes  = CalculateStatistics.CountMakeInDb(db.Vehicles.ToList());



            return(View());
        }