Ejemplo n.º 1
0
        public Boolean existe(String nombre, int idAlbum, int idInterprete)
        {
            Boolean      siExiste = false;
            CancionDatos datos    = new CancionDatos();

            if (datos.SeleccionarPorIdCancion(nombre, idAlbum, idInterprete).Count > 0)
            {
                siExiste = true;
            }
            else
            {
                siExiste = false;
            }
            return(siExiste);
        }
Ejemplo n.º 2
0
        public List <Cancion> ObtenerPorNombreCancion(String nombre)
        {
            CancionDatos datos = new CancionDatos();

            return(datos.SeleccionarPorNombreCancion(nombre));
        }
Ejemplo n.º 3
0
        public void InsertarCancion(Cancion cancion)
        {
            CancionDatos datos = new CancionDatos();

            datos.Insertar(cancion);
        }
Ejemplo n.º 4
0
        public List <Cancion> ObtenerPorInterpreteCancion(int idInterprete)
        {
            CancionDatos datos = new CancionDatos();

            return(datos.SeleccionarCancionPorInterprete(idInterprete));
        }
Ejemplo n.º 5
0
        public List <Cancion> ObtenerPorAlbumCancion(int idAlbum)
        {
            CancionDatos datos = new CancionDatos();

            return(datos.SeleccionarCancionPorAlbum(idAlbum));
        }
Ejemplo n.º 6
0
        public List <Cancion> ObtenerTodosCancion()
        {
            CancionDatos datos = new CancionDatos();

            return(datos.SeleccionarTodosCancion());
        }