public DetailsOfThePrisonerViewModel(IEventAggregator eventAggregator, IPassEndpoint passEndpoint, IPunishmentEndpoint punishmentEndpoint, IReasonEndpoint reasonEndpoint, IIsolationEndpoint isolationEndpoint) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _passEndpoint = passEndpoint; _punishmentEndpoint = punishmentEndpoint; _reasonEndpoint = reasonEndpoint; _isolationEndpoint = isolationEndpoint; }
public AddIsolationViewModel(IEventAggregator eventAggregator, IIsolationEndpoint isolationEndpoint) { _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); _isolationEndpoint = isolationEndpoint; }