public BookRisultatiViewModel(Book libro)
 {
     Repository repo = new Repository();
     __book = libro;
     books = repo.FindByTitle(libro.Title).ToList();
     booksAutori = repo.FindByAuthor(libro.Author).ToList();
 }
示例#2
0
 public BookViewModel(IEnumerable<Book> libri )
 {
     repo = new Repository(_mongoDatabase);
     _libri = repo.FindByTitle(Titolo) as List<Book>;
 }