Exemple #1
0
        public ActionResult Edit(int?id)
        {
            Book bookObj = bookDB.GetBookById(id);

            ViewBag.author = new SelectList((IEnumerable <Author>)authDB.GetAuthorsList(), "AuthorId", "AuthorName");
            return(View(bookObj));
        }
Exemple #2
0
 public BookModel GetBookById(int id)
 {
     return(_bookModel.GetBookById(id));
 }
Exemple #3
0
        public ActionResult Edit(int?id)
        {
            Book bookObj = bookDB.GetBookById(id);

            return(View(bookObj));
        }