public int updateAreasList(List<Areas> areaList) { for (Areas areas : areaList) { if (areasDao.updateAreas(areas) <= 0) return 0; } return 1; }
public int updateAreas(Areas area) { return areasDao.updateAreas(area); }