public DataTable GetArea() { using (PersistentManager pm = new PersistentManager()) { AreaDao areaDao = new AreaDao(); return areaDao.Find(); } }
public void SaveArea(DataRow row) { using (PersistentManager pm = new PersistentManager()) { AreaDao areaDao = new AreaDao(); areaDao.Update(row); } }
public void AddArea(DataRow row) { using (PersistentManager pm = new PersistentManager()) { AreaDao areaDao = new AreaDao(); areaDao.Insert(row); } }