public void DeleteVehicle(DeleteVehicleVm vehicle)
 {
     if (vehicle != null)
     {
         var vehicl = _mapper.Map <Domain.Model.Vehicle>(vehicle);
         _vehicleRepository.DeleteVehicle(vehicl.Id);
     }
 }
 public IActionResult Delete(DeleteVehicleVm vehicleToDelete)
 {
     _vehicleService.DeleteVehicle(vehicleToDelete);
     return(RedirectToAction("UserVehicles", "User"));
 }