public JsonResult DesarchivarNotificacion(int IdNotificacion) { Notificaciones bll = new Notificaciones(); var response = bll.DesarchivarNotificacion(IdNotificacion); return(Json(response, JsonRequestBehavior.AllowGet)); }
public JsonResult DesarchivarNotificaciones(int[] idsNotificacion) { Notificaciones bll = new Notificaciones(); var updated = new List <int>(); foreach (var id in idsNotificacion) { var response = bll.DesarchivarNotificacion(id); if (response) { updated.Add(id); } } return(Json(updated, JsonRequestBehavior.AllowGet)); }