public void updateAddressData(string vh_id, string adr_id, int resolution) { AADDRESS_DATA adr_data = null; using (DBConnection_EF con = DBConnection_EF.GetUContext()) { adr_data = AddressDataDao.getAddressData(con, vh_id, adr_id); adr_data.LOACTION = resolution; AddressDataDao.update(con, adr_data); } }
public bool updateAddressData(string vh_id, string adr_id, int resolution, int location) { AADDRESS_DATA adr_data = null; try { using (sc.Data.DBConnection_EF con = sc.Data.DBConnection_EF.GetUContext()) { adr_data = AddressDataDao.getAddressData(con, vh_id, adr_id); adr_data.RESOLUTION = resolution; adr_data.LOACTION = location; AddressDataDao.update(con, adr_data); } return(true); } catch (Exception ex) { NLog.LogManager.GetCurrentClassLogger().Error(ex, "Exception:"); return(false); } }