public ActionResult Create(VehicleViewModel vehicle)
        {
            var convertedmodel = VehicleViewModel.ConvertVehicleViewModelToModel(vehicle);

            _coll.Create(convertedmodel);
            TempData["Create"] = "The records has been added to the system!";
            return(RedirectToAction("Index"));
        }
 public ActionResult Update(VehicleViewModel viewmodel)
 {
     vehicle.Edit(VehicleViewModel.ConvertVehicleViewModelToModel(viewmodel));
     TempData["Update"] = "The records has been changed from the system!";
     return(RedirectToAction("Index"));
 }