Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CUSTUniversal cUSTUniversal = db.CUSTUniversals.Find(id);

            db.CUSTUniversals.Remove(cUSTUniversal);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        // 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));
        }
Esempio n. 4
0
        // 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));
        }