internal void AddCustomerContacts(T_Customer_contacts contact) { using (MEMSEntities db = new MEMSEntities()) { db.T_Customer_contacts.Add(contact); db.SaveChanges(); } }
internal void UpdateCustomerContacts(T_Customer_contacts contact) { using (MEMSEntities db = new MEMSEntities()) { db.Entry(contact).State = EntityState.Modified; db.SaveChanges(); } }
public void UpdCustomerContact(T_Customer_contacts contacts) { try { ch = new CustomerHelper(); ch.UpdateCustomerContacts(contacts); } catch (Exception ex) { throw ex; } }