public IActionResult Index()
        {
            var categories     = _category.CollectCategoryList();
            var categoriesView = _service.ConvertDataModelToListView(categories);

            return(View(categoriesView));
        }
        public IActionResult CreateRegisteredVehicle(RegisteredVehicleView vehicle)
        {
            if (ModelState.IsValid)
            {
                RegisteredVehicle registered = new RegisteredVehicle();
                var categories = _category.CollectCategoryList();
                registered = _service.ConvertViewToData(vehicle, categories);
                _vehicle.Add(registered);

                return(RedirectToAction("Index", "RegisteredVehicle"));
            }
            ViewBag.Manufacturer = _manufacturer.CollectManufacturerList();
            return(View(vehicle));
        }