// save call data protected void SaveCall(Incident ourIncident) { var ourDbStore = new DbStore(); ourDbStore.StoreIncident(ourIncident); ourDbStore.UpdateTimes(ourIncident); }
// store lat and long for call protected void StoreLatLong(string latitude, string longitude, string wNumber) { var ourDbStore = new DbStore(); try { double tempLatitude = Convert.ToDouble(latitude); double tempLongitude = Convert.ToDouble(longitude); int tempWnumber = Convert.ToInt32(wNumber); ourDbStore.StoreLatLong(tempLatitude, tempLongitude, tempWnumber); } catch (Exception storeLatLongException) { Debug.WriteLine(storeLatLongException.ToString()); } }