public IActionResult Del(int[] delList) { int flag = 0; for (int i = 0; i < delList.Length; i++) { int result = materialManager.Del(delList[i]); if (result > 0) { flag++; } } if (flag == delList.Length) { return(Json("Success")); } else { return(Json("Fail")); } }