public async Task Add(CountryLanguage countryLanguage, string userName) { List <SQLParam> sQLParam = new List <SQLParam> { new SQLParam("@CultureCode", countryLanguage.CultureCode), new SQLParam("@CultureName", countryLanguage.CultureName), new SQLParam("@FallbackCulture", countryLanguage.CultureName), new SQLParam("@FallbackCultureCode", countryLanguage.CultureCode), new SQLParam("@CreatedBy", userName), new SQLParam("@Country", countryLanguage.Country), new SQLParam("@CountryCode", countryLanguage.CountryCode), new SQLParam("@Language", countryLanguage.Language), new SQLParam("@LanguageCode", countryLanguage.LanguageCode) }; try { SQLExecuteNonQueryAsync sqlhandler = new SQLExecuteNonQueryAsync(); await sqlhandler.ExecuteNonQueryAsync("[dbo].[usp_Localization_AddLanguage]", sQLParam); } catch { throw; } }
public async Task Add(CountryLanguage countryLanguage, string userName) { LocalizationProvider provider = new LocalizationProvider(); await provider.Add(countryLanguage, userName); }