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