예제 #1
0
 public ActionResult BuyingBooksCourseFiltered(int courseFilter)
 {
     var book = new ENNewBook();
     var books = book.ReadAll();
     books = books.Where(b => b.Subject.Course.Id == courseFilter).ToList();
     return View("BuyingBooks", books);
 }
예제 #2
0
 public ActionResult BuyingBooks()
 {
     var book = new ENNewBook();
     var books = book.ReadAll();
     /*
     var book = new Book("012345", "Mi bonico libro daprender", 99.01f, "/Scripts/widgets/jqwidgets/images/books/Carrie.jpg");
     var book1 = new Book("012346", "Sueños rallantes", 34.29f, "/Scripts/widgets/jqwidgets/images/inception.jpg");
     var book2 = new Book("012347", "El oso peleon", 1.10f, "/Scripts/widgets/jqwidgets/images/kungfupanda.png");
     var book3 = new Book("012348", "Hostias como panes", 22.99f, "/Scripts/widgets/jqwidgets/images/knockout.png");
     var books = new List<Book>();
     books.Add(book);
     books.Add(book1);
     books.Add(book2);
     books.Add(book3);*/
     return View("BuyingBooks", books);
 }