/// <summary> /// A synchronous version of <see cref="INfieldSurveySettingsService.AddOrUpdateAsync"/> /// </summary> public static IQueryable <SurveySetting> Query(this INfieldSurveySettingsService settingsService, string surveyId) { return(settingsService.QueryAsync(surveyId).Result); }
/// <summary> /// A synchronous version of <see cref="INfieldSurveySettingsService.AddOrUpdateAsync"/> /// </summary> public static SurveySetting AddOrUpdate(this INfieldSurveySettingsService settingsService, string surveyId, SurveySetting setting) { return(settingsService.AddOrUpdateAsync(surveyId, setting).Result); }