public ActionResult SaveCategory(TBLCategory p)
        {
            var getir = db.TBLCategory.Find(p.CategoryID);

            getir.Name = p.Name;
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult AddCategory(TBLCategory p)
 {
     db.TBLCategory.Add(p);
     db.SaveChanges();
     return(View());
 }