public async Task <IActionResult> Delete(int id) { await _vehicleManagementAPI.DeleteVehicle(id); return(RedirectToAction("Index")); }
public async Task <List <Vehicle> > DeleteVehicle(int id) { return(await _client.DeleteVehicle(id)); }