Пример #1
0
        public async Task <Aquarium> Delete(int id)
        {
            var aquarium = await GetById(id);

            if (aquarium != null)
            {
                _db.Remove(aquarium);
            }
            return(aquarium);
        }
Пример #2
0
        public async Task <MeasurementKey> Delete(int id)
        {
            var measurementKey = await GetById(id);

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

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