Example #1
0
 public ActionResult AddBooks(Books booksInfo)
 {
     booksInfo.States     = "can borrow book";
     booksInfo.CreateDate = DateTime.Now;
     if (booksDAL.InsertEntityModel(booksInfo) > 0)
     {
         return(Content("ok:Book Add Success!"));
     }
     else
     {
         return(Content("no:Book Add fail"));
     }
 }