public ActionResult Delete(string ids) { if (string.IsNullOrEmpty(ids)) { return(Content("异常的删除id提交")); } string[] strIds = ids.Split(','); List <int> idList = new List <int>(); foreach (var strId in strIds) { idList.Add(int.Parse(strId)); } // UserInfoService.DeleteList(idList); int res = DepartmentService.DeleteList(idList); if (res > 0) { return(Content("ok")); } else { return(Content("")); } }