public JsonResult Del(string ids) { if (string.IsNullOrWhiteSpace(ids)) { WorkContext.AjaxStringEntity.msgbox = "缺少参数"; return(Json(WorkContext.AjaxStringEntity)); } BLL.BLLSysDbBack bll = new BLL.BLLSysDbBack(); string del_file = ""; string msg = ""; var is_ok = bll.Del(ids, out msg, out del_file); if (is_ok) { AddAdminLogs(Entity.SysLogMethodType.Delete, "删除备份的数据库:" + del_file); WorkContext.AjaxStringEntity.msg = 1; WorkContext.AjaxStringEntity.msgbox = "删除成功"; } else { WorkContext.AjaxStringEntity.msgbox = msg; } return(Json(WorkContext.AjaxStringEntity)); }