public ActionResult BatchDelete(int[] EnterpriseIDs) { bool flag = _enterpriseService.BatchDeleteEnterprise(EnterpriseIDs); #region 记录日志 string names = _enterpriseService.GetEnterpriseNames(EnterpriseIDs); LogService.WriteLogInfo(new Log { UserName = HttpContext.User.Identity.Name, Contents = string.Format("删除签约企业:{0}", names) }); #endregion return(Json(new { status = flag, message = flag ? "删除成功" : "删除失败" })); }