public IEnumerable Handle(Func <Guid, StepladderMatchAggregate> al, DeleteStepladderMatch command) { var agg = al(command.Id); yield return(new StepladderMatchDeleted { Id = command.Id, TournamentId = command.TournamentId }); }
public JsonResult DeleteStepladderMatch(DeleteStepladderMatch command) { Domain.Dispatcher.SendCommand(command); return(Json(command)); }