public void AddSchedule(NotificationSchedule notificationSchedule) { lock (Locker) { Database.Insert(notificationSchedule); } }
public void UpdateSchedule(NotificationSchedule notificationSchedule) { lock (Locker) { Database.Update(notificationSchedule); } }