public ActionResult DeleteConfirmed(short id) { // BONDSTATU bondstatu = db.BONDSTATUS.Find(id); BONDSTATU bondstatu = db.BONDSTATUS.SingleOrDefault(b => b.BSNO == id); db.BONDSTATUS.Remove(bondstatu); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(BONDSTATU bondstatu) { if (ModelState.IsValid) { db.Entry(bondstatu).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.BONDERSLNO = new SelectList(db.BONDERs, "BONDERSLNO", "BONDLICENSENO", bondstatu.BONDERSLNO); return(View(bondstatu)); }
// // GET: /BondStatus/Details/5 public ActionResult Details(short id = 0) { // BONDSTATU bondstatu = db.BONDSTATUS.Find(id); BONDSTATU bondstatu = db.BONDSTATUS.SingleOrDefault(b => b.BSNO == id); if (bondstatu == null) { return(HttpNotFound()); } return(View(bondstatu)); }
// // GET: /BondStatus/Edit/5 public ActionResult Edit(short id = 0) { //BONDSTATU bondstatu = db.BONDSTATUS.Find(id); BONDSTATU bondstatu = db.BONDSTATUS.SingleOrDefault(b => b.BSNO == id); if (bondstatu == null) { return(HttpNotFound()); } ViewBag.BONDERSLNO = new SelectList(db.BONDERs, "BONDERSLNO", "BONDLICENSENO", bondstatu.BONDERSLNO); return(View(bondstatu)); }
public ActionResult Create(BONDSTATU bondstatu) { if (ModelState.IsValid) { db.BONDSTATUS.Add(bondstatu); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.BONDERSLNO = new SelectList(db.BONDERs, "BONDERSLNO", "BONDLICENSENO", bondstatu.BONDERSLNO); return(View(bondstatu)); }