public ActionResult GetPublishers()
        {
            List <LibraryCommon.Publisher> _list = publisherBL.GetPublisherPassThru();
            PublisherListVM model = new PublisherListVM(_list);

            return(View(model));
        }
        public void ViewBagsForCreateAndUpdate()
        {
            PublisherBusinessLogic _publisherBL = new PublisherBusinessLogic();
            AuthorBusinessLogic    _authorBL    = new AuthorBusinessLogic();
            GenreBusinessLogic     _genreBL     = new GenreBusinessLogic();
            //calling BusniessLogicLayer to establich connection

            //assigns ViewBag use a List made in the bookvm instead of viewsbags

            AuthorListVM list = new AuthorListVM(_authorBL.GetAuthorPassThru());

            ViewBag.Authors = new SelectList(list.ListOfAuthorModels, "AuthorID", "LastName");

            PublisherListVM _publisherList = new PublisherListVM(_publisherBL.GetPublisherPassThru());

            ViewBag.Publishers = new SelectList(_publisherList.ListOfPublisherModels, "PublisherID", "Name");

            GenreListVM _genreList = new GenreListVM(_genreBL.GetGenrePassThru());

            ViewBag.Genres = new SelectList(_genreList.ListOfGenreModels, "GenreID", "Name");
        }