public IEnumerable Handle(Func <Guid, ParticipantAggregate> al, ReorderParticipant command) { var agg = al(command.Id); yield return(new ParticipantQualifyingPositionChanged { Id = command.Id, TeamId = command.TeamId, QualifyingPosition = command.QualifyingPosition }); }
public JsonResult ReorderParticipant(ReorderParticipant command) { Domain.Dispatcher.SendCommand(command); return(Json(command)); }