public ActionResult SetPublish(string ConfigurationIDs)
        {
            try
            {
                List <int> arr = ConfigurationIDs.Split(',').Select(Int32.Parse).ToList();
                foreach (var x in arr)
                {
                    var        envio = FacadeReceivers.GetAll().Where(p => p.ConfigurationID == x);
                    List <int> noti  = new List <int>();
                    var        confi = FacadeConfiguration.GetListAll().Where(p => p.ConfigurationID == x).FirstOrDefault();
                    confi.Publish = true;
                    ModelViewNotification message = new ModelViewNotification();

                    foreach (var y in envio)
                    {
                        noti.Add(y.UserID);
                        message.Message     = confi.Message;
                        message.Title       = confi.Title;
                        message.Url         = confi.Url;
                        message.UserID      = y.UserID;
                        message.MessageRead = false;
                        FacadeNotification.Insert(message);
                    }

                    FacadeNotification.SendPush(noti, confi.Title, confi.Message);
                    FacadeConfiguration.Update(confi);
                }



                //FacadeAudit.RegisterEntity("/ConfigPromotionTypes/Index", TransactionType.STATUS, "", "", user.IdUser);

                return(Json("Solicitud procesada con éxito", JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                //if (ex.GetType().Name == "Duplicate_Exception") throw ex;
                //if (ex.GetType().Name == "CustomExceptions") throw ex;
                //throw new CustomExceptions(ex, CustomExceptions.ErrorCodes.E_C_Generic);
                throw ex;
            }
        }
        public ActionResult GetListAll([DataSourceRequest] DataSourceRequest request)
        {
            var ls = FacadeConfiguration.GetListAll();

            return(Json(ls.ToDataSourceResult(request), JsonRequestBehavior.DenyGet));
        }