Exemplo n.º 1
0
    private void AddNewBook()
    {
        var book = new Book();

        book.Validate();
        entityService.Books.Add(book);

        bookListViewModel.SelectedBook = bookDataModels !.Single(b => b.Book == book);
        bookListViewModel.Focus();
    }