// GET: Library/Create public IActionResult Create() { //ViewData["EditorialId"] = new SelectList(_context.Editorials, "Id", "Nombre"); ViewData["EditorialId"] = new SelectList(_editorial.SelectAllEditorial(), "Id", "Nombre"); return(View()); }
// GET: Editorial public IActionResult Index() { return(View(_editorial.SelectAllEditorial())); }