public int AddCategory(Category category) { db.Categories.Add(category); return(db.SaveChanges()); }
public int AddProduct(Product product) { db.Products.Add(product); return(db.SaveChanges()); }
public int AddCategory(Category category) { db.Categories.Add(category); return(db.SaveChanges()); }
public int AddProduct(Product product) { db.Products.Add(product); return(db.SaveChanges()); }