コード例 #1
0
ファイル: BL_Empresa.cs プロジェクト: hroldan2000/x20170715
 public static List <BE_Empresa> Listar_Empresa_x_ID(BE_Empresa pBE_Empresa)
 {
     try
     {
         return(DA_Empresa.Listar_Empresas_x_ID(pBE_Empresa));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
ファイル: BL_Empresa.cs プロジェクト: hroldan2000/x20170715
        public static int Actualizar_Empresa(BE_Empresa pBE_Empresa)
        {
            int intValor = 0;

            try
            {
                using (TransactionScope ts = new TransactionScope())
                {
                    intValor = DA_Empresa.Actualizar_Empresa(pBE_Empresa);

                    ts.Complete();
                }
                intValor = Convert.ToInt32(pBE_Empresa.ID);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(intValor);
        }