예제 #1
0
        // GET: BooksController/Create
        public ActionResult Create()
        {
            var BookAuthorViewModel = new BookAuthorViewModel
            {
                Author = authorRepository.Get().ToList()
            };

            return(View(BookAuthorViewModel));
        }
예제 #2
0
        // GET: BooksController
        public ActionResult Index()
        {
            IList <Book> BookList = bookRepository.Get();

            return(View(BookList));
        }