public JsonResult Createdetials(Library.Model.createbook insert) { int createdetials = new int(); createdetials = bookService.Insertbook(insert); if (ModelState.IsValid) { bookService.Insertbook(insert); } return(Json(createdetials)); }
public ActionResult Create(Library.Model.createbook INSERT) { Library.Model.createbook test = new Library.Model.createbook(); ViewBag.BOOK_CLASS_NAME = this.codeService.GetBOOK_CLASS_NAME(); if (ModelState.IsValid) { if (INSERT.buydate != null) { INSERT.buydate = INSERT.buydate.Replace(",", ""); } bookService.Insertbook(INSERT); TempData["message"] = "存檔成功"; } return(View()); }
public int Insertbook(Library.Model.createbook insert) { Library.Dao.LIbraryDao LIbraryDao = new Dao.LIbraryDao(); return(LIbraryDao.Insertbook(insert)); }
/// <summary> /// 新增bf /// </summary> /// <returns></returns> public ActionResult create() { Library.Model.createbook test = new Library.Model.createbook(); ViewBag.BOOK_CLASS_NAME = this.codeService.GetBOOK_CLASS_NAME(); return(View()); }