Example #1
0
        public JsonResult QuitarFavorita(int IdNotificacion)
        {
            Notificaciones bll      = new Notificaciones();
            var            response = bll.DeleteFavorite(IdNotificacion);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public JsonResult QuitarFavoritas(int[] notificaciones)
        {
            Notificaciones bll     = new Notificaciones();
            var            updated = new List <int>();

            foreach (var id in notificaciones)
            {
                var response = bll.DeleteFavorite(id);
                if (response)
                {
                    updated.Add(id);
                }
            }
            return(Json(updated, JsonRequestBehavior.AllowGet));
        }
Example #3
0
 public void DeleteFavorite(int id)
 {
     Notificacion.BLL.Notificaciones n = new Notificacion.BLL.Notificaciones();
     n.DeleteFavorite(id);
 }