public ActionResult DeleteConfirmed(int id) { CUSTUniversal cUSTUniversal = db.CUSTUniversals.Find(id); db.CUSTUniversals.Remove(cUSTUniversal); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID,FullName,AcctOpenDate,AcctOpenBy,Owner,EditDate,EditBy,KYCStatus,CreditStatus,CustStatus")] CUSTUniversal cUSTUniversal) { if (ModelState.IsValid) { db.Entry(cUSTUniversal).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ID = new SelectList(db.CUSTs, "ID", "BPRole", cUSTUniversal.ID); ViewBag.ID = new SelectList(db.CUSTDetails, "ID", "SName", cUSTUniversal.ID); return(View(cUSTUniversal)); }
// GET: Customer/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CUSTUniversal cUSTUniversal = db.CUSTUniversals.Find(id); if (cUSTUniversal == null) { return(HttpNotFound()); } return(View(cUSTUniversal)); }
// GET: Customer/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CUSTUniversal cUSTUniversal = db.CUSTUniversals.Find(id); if (cUSTUniversal == null) { return(HttpNotFound()); } ViewBag.ID = new SelectList(db.CUSTs, "ID", "BPRole", cUSTUniversal.ID); ViewBag.ID = new SelectList(db.CUSTDetails, "ID", "SName", cUSTUniversal.ID); return(View(cUSTUniversal)); }