public async Task <IActionResult> deleteVehicle(int id) { var vehicleRepo = await _repo.getVehicleWithId(id); _repo.Delete <Vehicle>(vehicleRepo); return(Ok(await _repo.SaveAll())); }
public async Task deletePlaza(int id) { var plazaRepo = await _repo.GetPlaza(id); _repo.Delete <Plaza>(plazaRepo); await _repo.SaveAll(); }