예제 #1
0
        public JsonResult DeletePushNotifications(string ids)
        {
            JsonReturnMessages data = new JsonReturnMessages()
            {
                IsSuccess = true, Msg = ""
            };

            try
            {
                string[]       idarray = ids.Split(",".ToCharArray());
                VersionTrackBo verBO   = BoFactory.GetVersionTrackBo;

                List <SMC_PackageExt> exts = new List <SMC_PackageExt>();
                foreach (string id in idarray)
                {
                    if (String.IsNullOrEmpty(id))
                    {
                        continue;
                    }
                    BoFactory.GetPushManageBO.DeletePushNotifications(id);
                }

                //BoFactory.GetAppCenterBO.AddSMC_PackageExt(exts);
                data.IsSuccess = true;
                data.Msg       = "删除推送日志成功!";
            }
            catch (Exception e)
            {
                data.IsSuccess = false;
                data.Msg       = e.Message;
            }
            return(Json(data));
        }