public IActionResult Index([FromServices] IBookDI <Book> _book) { IEnumerable <Book> getBooks = _book.GetAll(); return(View(getBooks)); }
public DIExController(IBookDI <Book> book) { _book = book; }
public IActionResult Index([FromServices] IBookDI <Book> _book) { IEnumerable <Book> getBooks = _book.GetAll(); return(View(getBooks)); }
public DIExController(IBookDI <Book> book) { _book = book; }