public async Task <ActionResult> DeleteConfirmed(int id) { try { VehicleMake vehicleMake = await _vehicleService.FindVehicleMakeAsync(id); await _vehicleService.DeleteVehicle(vehicleMake); } catch (DataException) { return(RedirectToAction("Delete", new { id, saveChangesError = true })); } return(RedirectToAction("Index")); }