Beispiel #1
0
        public async Task <Aquarium> Delete(int id)
        {
            var aquarium = await GetById(id);

            if (aquarium != null)
            {
                _db.Remove(aquarium);
            }
            return(aquarium);
        }
        public async Task <MeasurementKey> Delete(int id)
        {
            var measurementKey = await GetById(id);

            if (measurementKey != null)
            {
                _db.Remove(measurementKey);
            }
            return(measurementKey);
        }
Beispiel #3
0
        public Log Delete(int id)
        {
            var log = GetById(id);

            if (log != null)
            {
                _db.Remove(log);
            }
            return(log);
        }