예제 #1
0
        public void DeleteItem(TravelItem item)
        {
            if (item is null)
            {
                throw new ArgumentNullException(nameof(item));
            }

            if (Items.Contains(item))
            {
                Items.Remove(item);
            }
        }
예제 #2
0
 public void AddItem(TravelItem item)
 {
     Items.Add(item);
 }