Ejemplo n.º 1
0
 public Task <AttendeeRelationship> CreateAttendeeRelationshipAsync(AttendeeRelationship relationship)
 {
     _eventValidator.ValidateEventExists(relationship.EventId);
     _personValidator.ValidatePersonExists(relationship.PersonId);
     _attendeeValidator.ValidateAttendeeRelationshipDoesNotExist(relationship);
     _attendeeValidator.CanWriteRelationship(relationship);
     _attendeeValidator.ValidateAttendeeRelationshipDoesntTargetHost(relationship);
     return(null);
 }
 public Task UpdateHostAsync(int eventId, int newHostId)
 {
     _eventValidator.ValidateEventExists(eventId);
     _personValidator.ValidatePersonExists(newHostId);
     _eventValidator.CanUpdateHost(eventId);
     return(null);
 }