public async Task HandleAsync(SwitchToLogInEvent message, CancellationToken cancellationToken) { CheckInViewModel checkInVM = IoC.Get <CheckInViewModel>(); checkInVM.Client = message.Client; checkInVM.Phone = message.Phone; await ActivateItemAsync(checkInVM, cancellationToken); }
public ShellViewModel(CheckInViewModel checkInVM, IEventAggregator events, ILoggedInUser user, IAPIHelper apiHelper) { _checkInVM = checkInVM; _events = events; _user = user; _apiHelper = apiHelper; _events.Subscribe(this); ActivateItem(IoC.Get <LoginViewModel>()); }