public IHttpActionResult Delete(int vehicleId) { var result = _repo.DeleteVehicle(vehicleId); return(result ? Ok(_repo.GetAllVehicles()) : SendBadRequest()); }
public void Delete(int id) { _vehicleRepo.DeleteVehicle(id); }