bootbox.confirm("确认要删除?", function (e) {
if (e) {
ShowLoading();
$.ajax({
url: '@Html.UrlHref("LocalSite", "/PlanDayManagement/RestDaySetting/DeleteBatch")',
data: { ids: ids },
dataType: "json",
traditional: true,
success: function (result) {
alert(result.Message);
if (result.Success) {
queryGrid();
}
},
complete: function () {
HiddeLoading();
}
})
}
})
public ActionResult DeleteBatch(List<string> ids)
{
BLL.Base.CacheHelper.Remove("plan_day_type_rest_day_setting");
...
return Json(new { Success = true, Message = "删除成功!" }, JsonRequestBehavior.AllowGet);
}