public async Task <ActionResult> Delete(string ids) { var result = new JsonModel { statusCode = 300, message = "删除失败,记录不存在!", closeCurrent = false }; if (string.IsNullOrEmpty(ids)) { return(Json(result)); } var list = await PartnerRepository.BatchDeleteAsync(ids); if (list == null) { return(Json(result)); } var msg = string.Join(",", list.Select(m => m.Name).ToArray()).ToEllipsis(100); await LogRepository.Insert(TableSource.Partner, OperationType.Delete, string.Format("批量删除{0}等合作伙伴", msg), ids); result.statusCode = 200; result.message = "删除成功!"; return(Json(result)); }