public static int Registrar_Empresa(BE_Empresa pBE_Empresa) { int intValor = 0; try { using (TransactionScope ts = new TransactionScope()) { intValor = DA_Empresa.Registrar_Empresa(pBE_Empresa); ts.Complete(); } intValor = Convert.ToInt32(pBE_Empresa.ID); } catch (Exception ex) { throw ex; } return(intValor); }