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