public ActionResult Edit([Bind(Include = "ID,NAME")] BOOK_CATEGORY bOOK_CATEGORY) { if (ModelState.IsValid) { db.Entry(bOOK_CATEGORY).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bOOK_CATEGORY)); }
public ActionResult Edit([Bind(Include = "ID,NAME")] MemberType memberType) { if (ModelState.IsValid) { db.Entry(memberType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(memberType)); }
public ActionResult Edit([Bind(Include = "ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,CONTACT_NO,EDUCATION,SPECIALIZATION,REMARKS")] AUTHOR aUTHOR) { if (ModelState.IsValid) { db.Entry(aUTHOR).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(aUTHOR)); }
public ActionResult Edit([Bind(Include = "ID,PublicationTypeId,NAME,ADDRESS,EMAIL,CONTACT_NO")] PUBLISHER pUBLISHER) { if (ModelState.IsValid) { db.Entry(pUBLISHER).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.PublicationTypeId = new SelectList(db.PublicationTypes, "ID", "NAME", pUBLISHER.PublicationTypeId); return(View(pUBLISHER)); }
public ActionResult Edit([Bind(Include = "ID,MemberTypeId,MEMBERSHIP_ID,MEMBERSHIP_DATE,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,CONTACT_NO,EDUCATION,REMARKS")] MEMBER mEMBER) { if (ModelState.IsValid) { db.Entry(mEMBER).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.MemberTypeId = new SelectList(db.MemberTypes, "ID", "NAME", mEMBER.MemberTypeId); return(View(mEMBER)); }
public ActionResult Edit([Bind(Include = "ID,BOOK_CATEGORY_ID,PUBLISHER_ID,BOOK_NAME,BOOK_SUBJECT,BOOK_DESCRIPTION")] BOOK bOOK) { if (ModelState.IsValid) { db.Entry(bOOK).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.BOOK_CATEGORY_ID = new SelectList(db.BOOK_CATEGORY, "ID", "NAME", bOOK.BOOK_CATEGORY_ID); return(View(bOOK)); }
public ActionResult Edit([Bind(Include = "ID,DATE,BOOK_ID,MEMBER_ID,FINE,REMARKS")] BOOK_RECEIEVED bOOK_RECEIEVED) { if (ModelState.IsValid) { db.Entry(bOOK_RECEIEVED).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } ViewBag.BOOK_ID = new SelectList(db.BOOKs, "ID", "BOOK_NAME", bOOK_RECEIEVED.BOOK_ID); ViewBag.MEMBER_ID = new SelectList(db.MEMBERs, "ID", "MEMBERSHIP_ID", bOOK_RECEIEVED.MEMBER_ID); return View(bOOK_RECEIEVED); }
public ActionResult Edit([Bind(Include = "ID,ISSUE_DATE,BOOK_ID,MEMBER_ID,NO_OF_DAYS,FINE,REMARKS")] BOOK_ISSUE bOOK_ISSUE) { if (ModelState.IsValid) { db.Entry(bOOK_ISSUE).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.BOOK_ID = new SelectList(db.BOOKs, "ID", "BOOK_NAME", bOOK_ISSUE.BOOK_ID); ViewBag.MEMBER_ID = new SelectList(db.MEMBERs, "ID", "MEMBERSHIP_ID", bOOK_ISSUE.MEMBER_ID); return(View(bOOK_ISSUE)); }