public int deleteAreasByIds(int[] ids) { for (int i = 0; i < ids.length; i++) { if (areasDao.deleteAreas(ids[i]) <= 0) return 0; } return 1; }
public int deleteAreas(int id) { return areasDao.deleteAreas(id); }