/// <summary> /// A synchronous version of <see cref="INfieldTranslationsService.DefaultTextsAsync"/> /// </summary> public static IQueryable <Translation> DefaultTexts(this INfieldTranslationsService languagesService) { return(languagesService.DefaultTextsAsync.Result); }
/// <summary> /// A synchronous version of <see cref="INfieldTranslationsService.UpdateAsync"/> /// </summary> public static void Update(this INfieldTranslationsService languagesService, string surveyId, int languageId, Translation translation) { languagesService.UpdateAsync(surveyId, languageId, translation).Wait(); }
/// <summary> /// A synchronous version of <see cref="INfieldTranslationsService.QueryAsync"/> /// </summary> public static IQueryable <Translation> Query(this INfieldTranslationsService languagesService, string surveyId, int languageId) { return(languagesService.QueryAsync(surveyId, languageId).Result); }
/// <summary> /// A synchronous version of <see cref="INfieldLanguagesService.AddAsync"/> /// </summary> public static Translation Add(this INfieldTranslationsService translationsService, string surveyId, int languageId, Translation translation) { return(translationsService.AddAsync(surveyId, languageId, translation).Result); }