public JsonResult Delete(int id) { bool isSuccess = false; try { deptService.DeleteSingleDept(id); isSuccess = true; } catch (Exception ex) { Logger.Error(ex); } return(Json(isSuccess)); }