public ActionResult DeleteConfirmed(int id)
        {
            tbld_Outlet_grade tbld_Outlet_grade = db.tbld_Outlet_grade.Find(id);

            db.tbld_Outlet_grade.Remove(tbld_Outlet_grade);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,name,code,description")] tbld_Outlet_grade tbld_Outlet_grade)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbld_Outlet_grade).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbld_Outlet_grade));
 }
        public ActionResult Create([Bind(Include = "id,name,code,description")] tbld_Outlet_grade tbld_Outlet_grade)
        {
            if (ModelState.IsValid)
            {
                db.tbld_Outlet_grade.Add(tbld_Outlet_grade);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tbld_Outlet_grade));
        }
        // GET: DBhouseOutletGrade/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbld_Outlet_grade tbld_Outlet_grade = db.tbld_Outlet_grade.Find(id);

            if (tbld_Outlet_grade == null)
            {
                return(HttpNotFound());
            }
            return(View(tbld_Outlet_grade));
        }