private async Task AlarmAsync(IList <AlarmOption> alarmOption, IMonitorJob job) { foreach (var item in alarmOption) { if (alarmOption != null) { item.Emails = job.Emails?.Split(',').AsEnumerable(); item.Phones = job.Mobiles?.Split(',').AsEnumerable(); await _alarmService.AlarmAsync(item); } } }