public ActionResult Edit(int id)
        {
            T_Shop_ProductCategory temp = db.T_Shop_ProductCategory.Find(id);

            ViewBag.item = temp;
            return(View());
        }
        public ActionResult Delete(int id)
        {
            T_Shop_ProductCategory temp = db.T_Shop_ProductCategory.Find(id);

            db.T_Shop_ProductCategory.Remove(temp);
            db.SaveChanges();
            return(RedirectToAction("index"));
        }
        public ActionResult EditSave(string Name, string Description, int Id)
        {
            T_Shop_ProductCategory item = db.T_Shop_ProductCategory.Find(Id);

            item.Name        = Name;
            item.Description = Description;
            db.SaveChanges();
            return(RedirectToAction("index"));
        }
        public ActionResult Add(T_Shop_ProductCategory category)
        {
            T_Shop_ProductCategory temp = new T_Shop_ProductCategory();

            temp.Name        = category.Name;
            temp.Description = category.Description;
            db.T_Shop_ProductCategory.Add(temp);
            db.SaveChanges();

            return(RedirectToAction("index"));
        }