internal void DelSupplierContacts(T_Suppliers_contacts contact) { using (MEMSEntities db = new MEMSEntities()) { db.Entry(contact).State = EntityState.Deleted; db.SaveChanges(); } }
internal void AddSupplierContacts(T_Suppliers_contacts contact) { using (MEMSEntities db = new MEMSEntities()) { db.T_Suppliers_contacts.Add(contact); db.SaveChanges(); } }
public void DelSupplierContacts(T_Suppliers_contacts contact) { try { sh = new SupplierHelper(); sh.DelSupplierContacts(contact); } catch (Exception ex) { throw ex; } }