public async void UpdateAddition(Model.QuestionAddition model) { await QueryAddition(model.QID).ContinueWith(async(results) => { if (results.Result == null) { try { await db.InsertAsync(model); } catch (Exception ex) { Log.SaveLog("UpdateAddition.Insert", ex); } } else { try { await db.UpdateAsync(model); } catch (Exception ex) { Log.SaveLog("UpdateAddition.Update", ex); } } }); }
public async void UpdateAddition(Model.QuestionAddition model) { await QueryAddition(model.QID).ContinueWith(async(results) => { if (results.Result == null) { try { await db.InsertAsync(model); } catch (Exception ex) { Crashes.TrackError(ex); } } else { try { await db.UpdateAsync(model); } catch (Exception ex) { Crashes.TrackError(ex); } } }); }