public string ListarPresentacion()
        {
            string              sb = "";
            brPresentacion      obrPresentacion = new brPresentacion();
            List <beDataColumn> campos          = new List <beDataColumn>();

            campos.Add(new beDataColumn {
                Campo = "ID_Presentacion", Titulo = "Id Presentacion", Ancho = 10
            });
            campos.Add(new beDataColumn {
                Campo = "NOMBRE_Presentacion", Titulo = "Nombre", Ancho = 70
            });
            campos.Add(new beDataColumn {
                Campo = "ESTADO", Titulo = "Estado", Ancho = 20
            });
            List <bePresentacion> lstObePresentacion = obrPresentacion.ListarPresentacion();

            if (lstObePresentacion != null)
            {
                if (lstObePresentacion.Count() > 0)
                {
                    sb = (CSV.SerializarCamposLista(lstObePresentacion, '|', ';', true, campos));
                }
            }
            return(sb);
        }
        public string GuardarCargueMasivo(beArchivo obeArchivo)
        {
            string         retorno         = "";
            string         mensaje         = "";
            brPresentacion obrPresentacion = new brPresentacion();

            byte[] Data = new byte[obeArchivo.FILES_CARGUE[0].ContentLength];
            obeArchivo.FILES_CARGUE[0].InputStream.Read(Data, 0, obeArchivo.FILES_CARGUE[0].ContentLength);


            int idCursoImp = obrPresentacion.CargueMasivo(obeArchivo.CADENA_CARGUE);

            if (idCursoImp > 0)
            {
                mensaje = "Se logro el cargue masivo con exito.";
            }
            else
            {
                mensaje = "No se pudo hacer el cargo masivo.";
            }
            retorno = ListarPresentacion() + "¬" + mensaje;
            return(retorno);
        }