public ActionResult Delete(int id, AlbumFavorites a)
 {
     try
     {
         albumFavorites.Eliminar(a.Id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
        //GET: AlbumController/Agregate/5
        public ActionResult Agregate(int id, string title, int albumId)
        {
            if (ModelState.IsValid)
            {
                AlbumFavorites a = new AlbumFavorites();
                a.Id      = id;
                a.Title   = title;
                a.IdAlbum = albumId;

                return(View(a));
            }
            return(View());
        }
        public ActionResult Agregate(int id, string title, int idAlbum, AlbumFavorites album)
        {
            try
            {
                //af.Id = id;
                //af.Title = title;
                //af.IdAlbum = albumId;

                albumFavorites.Agregar(id, title, idAlbum);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
        // GET: AlbumController/Delete/5
        public ActionResult Delete(int id)
        {
            AlbumFavorites a = albumFavorites.ConsultarAlbumFavoritesId(id);

            return(View(a));
        }