public ActionResult Delete(int[] cbxItem) { if (cbxItem.Count() > 0) { foreach (int item in cbxItem) { DepartmentService departmentService = new DepartmentService(); departmentService.Deletes(item); } } var response = new { status = true, data = cbxItem }; return(Json(response, JsonRequestBehavior.AllowGet)); }