public BookViewModel(IBooksService booksService)
 {
     _booksService   = booksService;
     SaveBookCommand = new DelegateCommand(() => OnSaveBookAsync().ConfigureAwait(true));
     EventAggregator <BookInfoEvent> .Instance.Event += LoadBook;
 }
Beispiel #2
0
 public BooksViewModel(IBooksService booksService)
 {
     _booksService   = booksService;
     GetBooksCommand = new DelegateCommand(OnGetBooks, CanGetBooks);
     AddBookCommond  = new DelegateCommand(OnAddBook);
 }