void ICommandHandler <ChangeLaycan> .Handle(ChangeLaycan command) { var spot = this._repository.Get(command.SpotCharterId); spot.ChangeLaycan(command); this._repository.Save(spot); }
public void ChangeLaycan(ChangeLaycan command) { this.UpdateAggregate(new LaycanChanged(this.Id, command.Login, command.Version + 1, command.Laycan)); }