public void AddNew(TargetApp targetApp) { targetApp.Id = Guid.NewGuid(); _app.Set <TargetApp>().Add(targetApp); _app.SaveChanges(); _scheduler.AddHealthCheckJob(targetApp.Id.ToString(), targetApp.Interval); }