Пример #1
0
 public ActionResult ReturnBook(int id)
 {
     电商.Areas.Admin.Models.Entities4 db = new Models.Entities4();
     电商.Areas.Admin.Models.bring     b  = db.bring.Find(id);
     ViewBag.b = b;
     return(View());
 }
Пример #2
0
 public ActionResult ReturnBookSave(int id, string returntime)
 {
     电商.Areas.Admin.Models.Entities4 db    = new Models.Entities4();
     电商.Areas.Admin.Models.bring     bring = db.bring.Find(id);
     bring.isreturn   = 1;
     bring.returntime = returntime;
     bring.bookstatus.bringnum++;
     db.SaveChanges();
     return(RedirectToAction("BookStatusList"));
 }