public void Delete(int id) { var scooter = new Scooter { ScooterId = id }; _rentalScooterContext.Entry(scooter).State = Microsoft.EntityFrameworkCore.EntityState.Deleted; }
public void Delete(int id) { var sensor = new Sensor { SensorId = id }; _rental.Entry(sensor).State = Microsoft.EntityFrameworkCore.EntityState.Deleted; }