internal void UpdateCustomerAddress(T_Customer_address address) { using (var db = new MEMSEntities()) { db.Entry(address).State = EntityState.Modified; db.SaveChanges(); } }
internal void DelCustomerAddress(T_Customer_address address) { using (MEMSEntities db = new MEMSEntities()) { db.Entry(address).State = EntityState.Deleted; db.SaveChanges(); } }
internal void AddCustomerAddress(T_Customer_address address) { using (MEMSEntities db = new MEMSEntities()) { db.T_Customer_address.Add(address); db.SaveChanges(); } }
public void UpdCustomerAddress(T_Customer_address address) { try { ch = new CustomerHelper(); ch.UpdateCustomerAddress(address); } catch (Exception ex) { throw ex; } }