Example #1
0
        public ActionResult RemoveForm(string keyValue)
        {
            Wssjbg_dealBLL wssjbg_dealbll = new Wssjbg_dealBLL();

            foreach (var item in keyValue.Split(','))
            {
                wssjbgbll.RemoveForm(item);
                Expression <Func <Wssjbg_dealEntity, bool> > condition = e => e.WssjbgId == item;
                var list = wssjbg_dealbll.GetListForCon(condition);
                if (list != null && list.Count() > 0)
                {
                    var id = list.FirstOrDefault().Id;
                    wssjbg_dealbll.RemoveForm(id);
                }
            }

            return(Success("删除成功。"));
        }