删除客户 3 /// 删除原则:1、删除客户信息 4 /// 2、删除客户公司简介数据 [UserAuthorizeAttribute(ModuleAlias = , OperaAction = )] 7 public ActionResult Delete(string idList) 8 { , Msg = }; { (; return Json(json); } id = idList.Trim().Split(}, StringSplitOptions.RemoveEmptyEntries).Select(p => int.Parse(p)).ToList(); (TransactionScope ts = new TransactionScope()) 18 { { 21 foreach(var item in id) 22 { entity = BussinessCustomerManage.Get(p => p.ID == item); ); 26 } BussinessCustomerManage.Delete(p => id.Contains(p.ID)); + json.Msg, Common.Enums.enumLog4net.WARN); 31 32 ts.Complete(); 33 34 } 35 catch (Exception e) 36 { ; , e); 39 } 40 41 } 42 } 43 catch (Exception e) 44 { ; , e); 47 } 48 return Json(json); 49 }
原创文章 转载请尊重劳动成果