예제 #1
0
        public void Delete(int id)
        {
            var scooter = new Scooter
            {
                ScooterId = id
            };

            _rentalScooterContext.Entry(scooter).State = Microsoft.EntityFrameworkCore.EntityState.Deleted;
        }
예제 #2
0
        public void Delete(int id)
        {
            var sensor = new Sensor
            {
                SensorId = id
            };

            _rental.Entry(sensor).State = Microsoft.EntityFrameworkCore.EntityState.Deleted;
        }