public ParticipantStateUpdated(Guid id, Guid participantId, EventAcceptanceState newState) : base(id) { this.ParticipantId = participantId; this.NewState = newState; }
public void UpdateParticipantState(Guid participantId, EventAcceptanceState newState) { var @event = new ParticipantStateUpdated(Id, participantId, newState); base.RaiseEvent(@event); }
public UpdateParticipantState(Guid eventoId, Guid ParticipantId, EventAcceptanceState state) : base(eventoId) { this.ParticipantId = ParticipantId; this.State = state; }
public void UpdateAcceptanceState(EventAcceptanceState acceptanceState) { this.AcceptanceState = acceptanceState; }
internal Participant(Guid userId, EventAcceptanceState acceptanceState) { this.UserId = userId; this.AcceptanceState = acceptanceState; }
public async Task <IActionResult> UpdateParticipantState([FromRoute] Guid eventId, [FromRoute] Guid participantId, [FromRoute] EventAcceptanceState state) { await commandDispatcher.Dispatch <Domain.Entity.Evento>(new UpdateParticipantState(eventId, participantId, state)); return(new StatusCodeResult(StatusCodes.Status204NoContent)); }