public override bool Update(Stock entity) { _db.Entry(entity).State = EntityState.Modified; return(_db.SaveChanges() > 0); }
public bool Add(Customer customer) { _db.Customers.Add(customer); return(_db.SaveChanges() > 0); }
public bool Add(Product product) { _db.Products.Add(product); return(_db.SaveChanges() > 0); }