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