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

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

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

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