public bool editCategory(Category cat)
 {
     var db = new ProductContext();
     if(cat != null)
     {
         db.Entry(cat).State = EntityState.Modified;
         db.SaveChanges();
         return true;
     }
     return false;
 }
 public bool addCategory(Category cat)
 {
     var db = new ProductContext();
     if(cat != null)
     {
         db.Categories.Add(cat);
         db.SaveChanges();
         return true;
     }
     return false;
 }
 public bool editCategory(Category cat)
 {
     return db.editCategory(cat);
 }
 public bool addCategory(Category cat)
 {
     return db.addCategory(cat);
 }