public int UpdateCategory(Category category)
 {
     db.Entry(category).State = EntityState.Modified;
     return(db.SaveChanges());
 }
 public int UpdateProduct(Product product)
 {
     db.Entry(product).State = EntityState.Modified;
     return(db.SaveChanges());
 }