示例#1
0
 public ActionResult New(Book book)
 {
     if (ModelState.IsValid)
     {
         try {
             bookService.Add(book);
         }
         catch { }
     }
     //return RedirectToAction("New");
     return View();
 }
示例#2
0
 public bool Add(Book model)
 {
     return bookDal.Add(model);
 }