public PhoneCallListPageViewModel(IPhoneCallRepository phoneCallRepository, INavigationService navService, IEventAggregator eventAggregator) {
      _phoneCallRepository = phoneCallRepository;
      _navService = navService;
      _eventAggregator = eventAggregator;
      NavCommand = new DelegateCommand<PhoneCall>(OnNavCommand);
      PhoneCallDetailNavCommand = new DelegateCommand(() => _navService.Navigate("PhoneCallDetail", 0));
 }
 public PhoneCallDetailPageViewModel(IPhoneCallRepository phoneCallRepository, INavigationService navService, IEventAggregator eventAggregator) {
     _phoneCallRepository = phoneCallRepository;
     _navService = navService;
     _eventAggregator = eventAggregator;
     GoBackCommand = new DelegateCommand(
         () => _navService.GoBack(),
         () => _navService.CanGoBack());
     NewPhoneCallCommand = new DelegateCommand(OnNewPhoneCall, CanNewPhoneCall);
     UpdatePhoneCallCommand = new DelegateCommand(OnUpdatePhoneCall, CanUpdatePhoneCall);
     DeletePhoneCallCommand = new DelegateCommand(OnDeletePhoneCall, CanDeletePhoneCall);
     TextBoxLostFocusAction = OnTextBoxLostFocusAction;
 }
 public PhoneCallController(IPhoneCallRepository phoneCallRepository)
 {
     _phoneCallRepository = phoneCallRepository;
 }