/// <summary>
 /// Adds a language to a survey
 /// </summary>
 public void UpdateSurveyLanguage(int surveyId, string languageCode, bool defaultLanguage, string Entity = Constants.EntitySurvey)
 {
     MultiLanguageFactory.Create().UpdateSurveyLanguage(surveyId, languageCode, defaultLanguage, Entity);
 }
 /// <summary>
 /// Disable survey's multi language features
 /// </summary>
 /// <param name="surveyId"></param>
 public void DisableMultiLanguage(int surveyId)
 {
     MultiLanguageFactory.Create().DisableMultiLanguage(surveyId);
 }
 /// <summary>
 /// Updates the current multi language mode that defines how
 /// the user selects his language
 /// </summary>
 /// <param name="surveyId"></param>
 /// <param name="languageMode"></param>
 public void UpdateMultiLanguage(int surveyId, MultiLanguageMode languageMode, string variableName)
 {
     MultiLanguageFactory.Create().UpdateMultiLanguage(surveyId, languageMode, variableName);
 }
 /// <summary>
 /// Deletes a language from the survey
 /// </summary>
 public void DeleteSurveyLanguage(int surveyId, string languageCode, string Entity = Constants.EntitySurvey)
 {
     MultiLanguageFactory.Create().DeleteSurveyLanguage(surveyId, languageCode, Entity);
 }
 /// <summary>
 /// Check if the language code is enabled for the survey
 /// and if its not returns the default enabled language code
 /// </summary>
 public string CheckSurveyLanguage(int surveyId, string languageCode)
 {
     return(MultiLanguageFactory.Create().CheckSurveyLanguage(surveyId, languageCode));
 }
 /// <summary>
 /// Get all enabled languages for the survey
 /// </summary>
 public MultiLanguageData GetSurveyLanguages(int surveyId, string Entity = Constants.Constants.EntitySurvey)
 {
     return(MultiLanguageFactory.Create().GetSurveyLanguages(surveyId, Entity));
 }
 /// <summary>
 /// Get all languages available
 /// </summary>
 public MultiLanguageData GetMultiLanguages()
 {
     return(MultiLanguageFactory.Create().GetMultiLanguages());
 }
 /// <summary>
 /// Returns current mode
 /// </summary>
 public MultiLanguageMode GetMultiLanguageMode(int surveyId)
 {
     return(MultiLanguageFactory.Create().GetMultiLanguageMode(surveyId));
 }