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

            m_item_category.is_exist = false;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Create([Bind(Include = "id,name,price")] m_item_category m_item_category)
        {
            if (ModelState.IsValid)
            {
                m_item_category.is_exist = true;
                db.m_item_category.Add(m_item_category);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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