Example #1
0
        public ActionResult FavQuitar(int artId)
        {
            try
            {
                SessionInitialize();

                RegistradoCEN registradoCEN = new RegistradoCEN();

                List <int> lista = new List <int>();
                lista.Add(artId);

                int miID = (int)Session["idUsuario"];
                registradoCEN.Eliminar_fav(miID, lista);

                return(RedirectToAction("../Articulo/Details", new { id = artId }));
            }
            catch (Exception e)
            {
                return(RedirectToAction("../Home"));
            }
        }