public IActionResult AfisareGenuri() { var genres = new GenreViewModel { GENs = repository.GetAllGenresAsync().Result.ToList() }; return(View(genres)); }
public IActionResult AfisareCarti() { var books = new BookViewModel { CARTEs = repository.GetAllBooksAsync().Result.ToList(), AUTORs = repository.GetAllAuthorsAsync().Result.ToList(), GENs = repository.GetAllGenresAsync().Result.ToList() }; return(View(books)); }