public IActionResult Index(ItemsListsViewModel itemsLists)
        {
            ViewBag.CarList           = Car_Repo.GetAll().ToList();
            ViewBag.DetailList        = Detail_Repo.GetAll().ToList();
            ViewBag.ConfigurationList = Config_Repo.GetAll().ToList();
            ItemsListsViewModel items = new ItemsListsViewModel()
            {
                ItemIdSelected = 1
            };

            return(View(itemsLists));
        }
        public IActionResult EditCar(int ItemIdSelected)
        {
            Car kek = Car_Repo.GetAll().FirstOrDefault(x => x.Id == ItemIdSelected);

            if (kek == null)
            {
                ViewBag.ErrorMesage = $"Car with id {kek.Id} cannot be found";
                return(View("NotFound"));
            }

            return(View(kek));
        }
        public IActionResult EditCar(Car car)
        {
            Car kek = Car_Repo.GetAll().FirstOrDefault(x => x.Id == car.Id);

            if (kek == null)
            {
                ViewBag.ErrorMesage = $"Car with id {car.Id} cannot be found";
                return(View("NotFound"));
            }
            else
            {
                Car_Repo.Edit(car);
            }
            return(View("/Views/Home/Index.cshtml"));
        }
        public IActionResult Index(int ItemIdSelected)
        {
            Car temp = (Car)Car_Repo.GetAll().FirstOrDefault(x => x.Id == ItemIdSelected);

            return(EditCar(temp));
        }