public IActionResult DeleteInfor(string ids) { ids = ids.TrimEnd(','); int h; try { h = bll.DeleteInfor(ids); } catch (Exception ex) { log.Error(ex.Message); throw; } return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "删除成功" : "删除失败" })); }