public async Task RecordReadings(IEnumerable <ACDeviceReading> readings) { // await _context.Database.BeginTransactionAsync(); await _context.AddRangeAsync(readings); await _context.SaveChangesAsync(); await CheckForAlerts(readings); }