public void Remove(int id)
        {
            Verify.ArgumentIsGreaterThan(nameof(id), id, 0);

            var item = FindById(id, false);

            if (item != null)
            {
                _items.Remove(item);
            }
        }
        public ScheduledEvent Update(int id, ScheduledEvent evt)
        {
            Verify.ArgumentIsGreaterThan(nameof(id), id, 0);
            var item = FindById(id, true);

            //See if the new event already exists
            var existing = FindByName(evt.Name);

            if (existing != null && existing.Id != id)
            {
                throw new Exception("Event already exists.");
            }

            CopyEvent(item, evt);

            return(CloneEvent(item));
        }
        /// <summary>Removes the product.</summary>
        /// <param name="id">The product to remove.</param>
        public void Remove(int id)
        {
            Verify.ArgumentIsGreaterThan(nameof(id), id, 0);

            RemoveCore(id);
        }
        /// <summary>Get a specific product.</summary>
        /// <returns>The product, if it exists.</returns>
        public Product Get(int id)
        {
            Verify.ArgumentIsGreaterThan(nameof(id), id, 0);

            return(GetCore(id));
        }