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("删除成功。")); }
public ActionResult RemoveForm(string keyValue) { bulletin_dealbll.RemoveForm(keyValue); return(Success("删除成功。")); }