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