public async void UpdateQuestionUserInfo(Model.QuestionUserInfo model) { await QueryQuestionUserInfo(model.UserID).ContinueWith(async(results) => { if (results.Result == null) { try { await db.InsertAsync(model); } catch (Exception ex) { Log.SaveLog("UpdateQuestionUserInfo.Insert", ex); } } else { try { await db.UpdateAsync(model); } catch (Exception ex) { Log.SaveLog("UpdateQuestionUserInfo.Update", ex); } } }); }
public async void UpdateQuestionUserInfo(Model.QuestionUserInfo model) { await QueryQuestionUserInfo(model.UserID).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); } } }); }