public IEnumerable Handle(Func <Guid, ParticipantAggregate> al, AssignParticipantToRoom command) { var agg = al(command.Id); yield return(new ParticipantAssignedToRoom { Id = command.Id, RoomNumber = command.RoomNumber }); }
public JsonResult AssignToRoom(AssignParticipantToRoom command) { Domain.Dispatcher.SendCommand(command); return(Json(command)); }