public int Update(Product_Supplier obj) { this.context.Product_Suppliers.Attach(obj); context.Entry(obj).State = System.Data.EntityState.Modified; return(this.context.SaveChanges()); }
public int Update(Product product) { this.context.Products.Attach(product); context.Entry(product).State = System.Data.EntityState.Modified; return(this.context.SaveChanges()); }
public int Update(Sale sale) { this.context.Sales.Attach(sale); context.Entry(sale).State = System.Data.EntityState.Modified; return(this.context.SaveChanges()); }