public void InsertProduct(Products products) { using (var ctx = new SystemCompanyEntities()) { ctx.AddToProducts(products); ctx.SaveChanges(); } }
public void InsertProduct(Products products) { using (var ctx = new SystemCompanyEntities()) { ctx.AddToProducts(products); ctx.SaveChanges(); } }