public ActionResult DeleteConfirmed(string id) { CSCOSHEQD cSCOSHEQD = db.CSCOSHEQDs.Find(id); db.CSCOSHEQDs.Remove(cSCOSHEQD); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "CONO,PRSCODE,MVTYPE,MVNO,MVID,INMVTYPE,INMVNO,INMVID,OUTMVTYPE,OUTMVNO,OUTMVID,MVDATE,SHAREAMT,STAMP")] CSCOSHEQD cSCOSHEQD) { if (ModelState.IsValid) { db.Entry(cSCOSHEQD).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.CONO = new SelectList(db.CSCOSHes, "CONO", "REM", cSCOSHEQD.CONO); return(View(cSCOSHEQD)); }
// GET: CSCOSHEQDs/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CSCOSHEQD cSCOSHEQD = db.CSCOSHEQDs.Find(id); if (cSCOSHEQD == null) { return(HttpNotFound()); } return(View(cSCOSHEQD)); }
// GET: CSCOSHEQDs/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CSCOSHEQD cSCOSHEQD = db.CSCOSHEQDs.Find(id); if (cSCOSHEQD == null) { return(HttpNotFound()); } ViewBag.CONO = new SelectList(db.CSCOSHes, "CONO", "REM", cSCOSHEQD.CONO); return(View(cSCOSHEQD)); }