public ActionResult Delete(string ids) { if (string.IsNullOrEmpty(ids)) { return(Content("对象不能为空")); } List <int> listId = new List <int>(); string[] IDList = ids.Split(','); foreach (var item in IDList) { listId.Add(int.Parse(item)); } //UserInfoBLL.Delete(); UserInfoBLL.DeleteList(listId); return(Content("ok")); }