public ActionResult DeleteConfirmed(string id) { mMemberDocument mMemberDocument = db.mMemberDocuments.Find(id); db.mMemberDocuments.Remove(mMemberDocument); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "nationalid,memberid,doccode,membername,docLocation,docUploaded")] mMemberDocument mMemberDocument) { if (ModelState.IsValid) { db.Entry(mMemberDocument).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.doccode = new SelectList(db.mDocumentTypes, "code", "name", mMemberDocument.doccode); return(View(mMemberDocument)); }
// GET: MemberDocuments/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } mMemberDocument mMemberDocument = db.mMemberDocuments.Find(id); if (mMemberDocument == null) { return(HttpNotFound()); } return(View(mMemberDocument)); }
// GET: MemberDocuments/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } mMemberDocument mMemberDocument = db.mMemberDocuments.Find(id); if (mMemberDocument == null) { return(HttpNotFound()); } ViewBag.doccode = new SelectList(db.mDocumentTypes, "code", "name", mMemberDocument.doccode); return(View(mMemberDocument)); }