public IEnumerable Handle(Func <Guid, StepladderMatchAggregate> al, UpdateStepladderMatch command)
        {
            var agg = al(command.Id);

            yield return(new StepladderMatchUpdated
            {
                Id = command.Id,
                TournamentId = command.TournamentId,
                HomeShots = command.HomeShots,
                AwayShots = command.AwayShots,
                Updated = DateTime.Now,
            });
        }
Exemplo n.º 2
0
 public JsonResult UpdateStepladderMatch(UpdateStepladderMatch command)
 {
     Domain.Dispatcher.SendCommand(command);
     return(Json(command));
 }