Example #1
0
 internal void DelSupplierContacts(T_Suppliers_contacts contact)
 {
     using (MEMSEntities db = new MEMSEntities())
     {
         db.Entry(contact).State = EntityState.Deleted;
         db.SaveChanges();
     }
 }
Example #2
0
        internal void AddSupplierContacts(T_Suppliers_contacts contact)
        {
            using (MEMSEntities db = new MEMSEntities())
            {
                db.T_Suppliers_contacts.Add(contact);

                db.SaveChanges();
            }
        }
Example #3
0
 public void DelSupplierContacts(T_Suppliers_contacts contact)
 {
     try
     {
         sh = new SupplierHelper();
         sh.DelSupplierContacts(contact);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }