Ejemplo n.º 1
0
 public void AddMemberToEvent(Event @event, Guid memberId)
 {
     @event.EventMembers.Add(new EventMember {
         MemberId = memberId
     });
     _context.Update(@event);
 }
Ejemplo n.º 2
0
 public void AddCategoryToEvent(Event @event, Guid categoryId)
 {
     @event.EventCategories.Add(new EventCategory {
         CategoryId = categoryId
     });
     _context.Update(@event);
 }
Ejemplo n.º 3
0
        public void AddMemberToEvent(Guid eventId, Member newMember, string username)
        {
            Event ev = GetUserEventById(eventId, username);

            ev.EventMembers.Add(new EventMember()
            {
                MemberId = newMember.Id
            });
            _context.Update(ev);
        }
Ejemplo n.º 4
0
 public void AddLocation(Event ev, Location newLocation)
 {
     ev.Locations.Add(newLocation);
     _context.Update(ev);
 }