public void EditarCAD(ClienteAlDetalle CAD) { try { using (TransactionScope scope = new TransactionScope()) { DAL.Modapie.Mantenimiento.Instancia.EditarCAD(CAD); scope.Complete(); } } catch (Exception ee) { throw; } }
public void InsertarClienteAlDetalle(ClienteAlDetalle clienteAlDetalle) { try { using (TransactionScope scope = new TransactionScope()) { DAL.Modapie.Mantenimiento.Instancia.InsertarClienteAlDetalle(clienteAlDetalle); scope.Complete(); } } catch (Exception ee) { throw; } }
public ClienteAlDetalle buscarCAD(string dni) { ClienteAlDetalle cad = new ClienteAlDetalle(); try { using (TransactionScope scope = new TransactionScope()) { cad = DAL.Modapie.Mantenimiento.Instancia.buscarCAD(dni); scope.Complete(); return(cad); } } catch (Exception ee) { DialogResult d = MessageBox.Show(ee.Message.ToString()); return(null); } }