Ejemplo n.º 1
0
        public bool AddEventToPerson(Event personEvents)
        {
            bool eventCanBeAdded = false;

            if (!(PersonEvents.Contains(personEvents)))
            {
                PersonEvents.Add(personEvents);
            }

            return(eventCanBeAdded);
        }
Ejemplo n.º 2
0
        public bool RemoveEventFromPerson(Event personEvent)
        {
            bool eventCanBeRemoved = false;

            if (PersonEvents.Contains(personEvent))
            {
                PersonEvents.Remove(personEvent);
                eventCanBeRemoved = true;
            }

            return(eventCanBeRemoved);
        }