예제 #1
0
        public ActionResult Edit(int id)
        {
            BookRepositry bookRepositry = new BookRepositry();
            BookDetail    book          = bookRepositry.GetBookById(id);

            return(View(book));
        }
예제 #2
0
 public BookListController()
 {
     books = new BookRepositry();
 }
예제 #3
0
        public ActionResult Index()
        {
            IEnumerable <BookDetail> books = BookRepositry.GetBookDetails();

            return(View(books));
        }
예제 #4
0
 public BookController()
 {
     bookRepositry = new BookRepositry();
 }