Example #1
0
        public ActionResult DeleteConfirmed(short id)
        {
            BONDSUBCATEGORY bondsubcategory = db.BONDSUBCATEGORies.Find(id);

            db.BONDSUBCATEGORies.Remove(bondsubcategory);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
        //
        // GET: /BondSubCategory/Delete/5

        public ActionResult Delete(short id = 0)
        {
            BONDSUBCATEGORY bondsubcategory = db.BONDSUBCATEGORies.Find(id);

            if (bondsubcategory == null)
            {
                return(HttpNotFound());
            }
            return(View(bondsubcategory));
        }
Example #3
0
 public ActionResult Edit(BONDSUBCATEGORY bondsubcategory)
 {
     if (ModelState.IsValid)
     {
         db.Entry(bondsubcategory).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(bondsubcategory));
 }
Example #4
0
        public ActionResult Create(BONDSUBCATEGORY bondsubcategory)
        {
            if (ModelState.IsValid)
            {
                db.BONDSUBCATEGORies.Add(bondsubcategory);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bondsubcategory));
        }