public async Task Handle(StationRenamed message) { var station = _viewStore.Get <StationListView>(message.Id); station.Name = message.NewName; await _viewStore.Update(station); }
private void Apply(StationRenamed stationRenamed) { _id = stationRenamed.Id; Name = stationRenamed.NewName; }