예제 #1
0
        public ActionResult RemoveForm(string keyValue)
        {
            Bulletin_dealBLL bulletin_dealbll = new Bulletin_dealBLL();

            foreach (var item in keyValue.Split(','))
            {
                bulletinbll.RemoveForm(item);
                Expression <Func <Bulletin_dealEntity, bool> > condition = e => e.BULLETINID == item;
                var list = bulletin_dealbll.GetListForCon(condition);
                if (list != null && list.Count() > 0)
                {
                    var keyvaluedeal = list.FirstOrDefault().ID;
                    bulletin_dealbll.RemoveForm(keyvaluedeal);
                }
            }
            return(Success("删除成功。"));
        }
예제 #2
0
 public ActionResult RemoveForm(string keyValue)
 {
     bulletin_dealbll.RemoveForm(keyValue);
     return(Success("删除成功。"));
 }