示例#1
0
 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);
             }
         }
     });
 }
示例#2
0
 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);
             }
         }
     });
 }