public ActionResult Index() { Puente p = new Puente(); List <Album> albums = p.obtenerAlbums(); return(View(albums)); }
public ActionResult obtenerAlbum(int id) { Puente p = new Puente(); Album a = new Album(); a = p.ObtenerlistaCancionAlbum(id); return(Json(a, JsonRequestBehavior.AllowGet)); }
public ActionResult obtenerAlbumes() { Puente p = new Puente(); List <Album> albumes = new List <Album>(); albumes = p.obtenerAlbums(); return(Json(albumes, JsonRequestBehavior.AllowGet)); }
public ActionResult buscarAlbum(string busqueda) { Puente p = new Puente(); List <Album> albumes = new List <Album>(); albumes = p.ObtenerlistaAlbumFiltro(busqueda); return(Json(albumes, JsonRequestBehavior.AllowGet)); }
public ActionResult ViewPlaylist(int id) { Puente p = new Puente(); Album a = new Album(); a = p.ObtenerlistaCancionAlbum(id); return(View(a)); }