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