Exemplo n.º 1
0
        public JsonResult Createdetials(Library.Model.createbook insert)
        {
            int createdetials = new int();

            createdetials = bookService.Insertbook(insert);
            if (ModelState.IsValid)
            {
                bookService.Insertbook(insert);
            }
            return(Json(createdetials));
        }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 public int Insertbook(Library.Model.createbook insert)
 {
     Library.Dao.LIbraryDao LIbraryDao = new Dao.LIbraryDao();
     return(LIbraryDao.Insertbook(insert));
 }
Exemplo n.º 4
0
 /// <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());
 }