public bool RegistrarPersonaje(bePersonajes obePersonajes, ref string Error)
        {
            bool           result = false;
            SqlTransaction trx    = null;

            using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["cnx"].ConnectionString))
            {
                try
                {
                    con.Open();
                    trx = con.BeginTransaction();
                    daPersonajes odaPersonajes = new daPersonajes();
                    result = odaPersonajes.RegistrarPersonajes(con, trx, obePersonajes);
                    if (result == true)
                    {
                        trx.Commit();
                    }
                    else
                    {
                        trx.Rollback();
                    }
                }
                catch (SqlException sqlex)
                {
                    Error = sqlex.Message;
                }
                catch (Exception ex)
                {
                    Error = ex.Message;
                }

                return(result);
            }
        }
        public List <bePersonajes> ListarTipo(ref string Error)
        {
            List <bePersonajes> lbeTipo = null;

            using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["cnx"].ConnectionString))
            {
                try
                {
                    con.Open();
                    daPersonajes odatipo = new daPersonajes();
                    lbeTipo = odatipo.ListarTipo(con);
                }
                catch (SqlException sqlex)
                {
                    Error = sqlex.Message;
                }
                catch (Exception ex)
                {
                    Error = ex.Message;
                }

                return(lbeTipo);
            }
        }