Пример #1
0
        void ICommandHandler <ChangeLaycan> .Handle(ChangeLaycan command)
        {
            var spot = this._repository.Get(command.SpotCharterId);

            spot.ChangeLaycan(command);
            this._repository.Save(spot);
        }
Пример #2
0
 public void ChangeLaycan(ChangeLaycan command)
 {
     this.UpdateAggregate(new LaycanChanged(this.Id, command.Login, command.Version + 1, command.Laycan));
 }