コード例 #1
0
ファイル: BL_Empresa.cs プロジェクト: hroldan2000/x20170715
        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);
        }