public static async Task <TModel> GetFirstOrDefaultByKeyAsync <TModel>( this ILocaleStore localeStore, string cultureCode, string key) where TModel : class, ILocalizedValue { var localeValues = await localeStore.GetByKeyAsync <TModel>(cultureCode, key); return(localeValues?.Values.FirstOrDefault()); }