Пример #1
0
 public void AddJobOrder(JobOrder job)
 {
     if (job == null)
     {
         throw new ArgumentNullException(nameof(job));
     }
     if (!_jobOrders.Contains(job))
     {
         _jobOrders.Add(job);
     }
 }
Пример #2
0
 public void RemoveJobOrder(JobOrder job)
 {
     if (job == null)
     {
         throw new ArgumentNullException(nameof(job));
     }
     if (_jobOrders.Contains(job))
     {
         _jobOrders.Remove(job);
     }
 }