Beispiel #1
0
        //
        // GET: /Book/
        public ActionResult Index(RentalSearchCriteria model)
        {
            var rentals = _rentalManager.GetAllRental();

            if (rentals == null)
            {
                rentals = new List <Rental>();
            }
            model.BookListItems      = GetBookList();
            model.LibrarianListItems = GetLibrarianlist();
            model.StudentListItems   = GetStudentlist();
            model.Rentals            = rentals;
            return(View(model));
        }