public async Task Delete(int id) { var readingFromDb = await _readingsRepository.GetReading(id); if (readingFromDb == null) { Response.StatusCode = 404; return; } await _readingsRepository.DeleteReading(id); }