This commit is contained in:
@@ -154,7 +154,7 @@ namespace AyaNova.Biz
|
||||
#endif
|
||||
|
||||
//Get the keys for a list of keys provided
|
||||
internal async Task<List<KeyValuePair<string, string>>> GetSubset(List<string> param)
|
||||
internal async Task<List<KeyValuePair<string, string>>> GetSubsetAsync(List<string> param)
|
||||
{
|
||||
|
||||
#if (DEBUG)
|
||||
@@ -165,7 +165,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
|
||||
//Get the keys for a list of keys provided, static format for calling from other internal classes
|
||||
internal static async Task<Dictionary<string, string>> GetSubsetStatic(List<string> param, long localeId)
|
||||
internal static async Task<Dictionary<string, string>> GetSubsetStaticAsync(List<string> param, long localeId)
|
||||
{
|
||||
#if (DEBUG)
|
||||
TrackRequestedKey(param);
|
||||
@@ -179,7 +179,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Get the CJKIndex value for the locale specified
|
||||
internal static async Task<bool> GetCJKIndex(long localeId, AyContext ct = null)
|
||||
internal static async Task<bool> GetCJKIndexAsync(long localeId, AyContext ct = null)
|
||||
{
|
||||
if (ct == null)
|
||||
ct = ServiceProviderProvider.DBContext;
|
||||
@@ -193,7 +193,7 @@ namespace AyaNova.Biz
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
internal static async Task<string> GetDefaultLocalizedText(string key)
|
||||
internal static async Task<string> GetDefaultLocalizedTextAsync(string key)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(key))
|
||||
return "ERROR: GetDefaultLocalizedText NO KEY VALUE SPECIFIED";
|
||||
@@ -217,7 +217,7 @@ namespace AyaNova.Biz
|
||||
//
|
||||
|
||||
|
||||
internal bool PutLocaleItemDisplayText(LocaleItem dbObj, NewTextIdConcurrencyTokenItem inObj, Locale dbParent)
|
||||
internal async Task<bool> PutLocaleItemDisplayTextAsync(LocaleItem dbObj, NewTextIdConcurrencyTokenItem inObj, Locale dbParent)
|
||||
{
|
||||
|
||||
if (dbParent.Stock == true)
|
||||
@@ -239,16 +239,16 @@ namespace AyaNova.Biz
|
||||
|
||||
if (HasErrors)
|
||||
return false;
|
||||
ct.SaveChanges();
|
||||
await ct.SaveChangesAsync();
|
||||
|
||||
//Log
|
||||
EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbParent.Id, AyaType.Locale, AyaEvent.Modified), ct);
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbParent.Id, AyaType.Locale, AyaEvent.Modified), ct);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
internal bool PutLocaleName(Locale dbObj, NewTextIdConcurrencyTokenItem inObj)
|
||||
internal async Task<bool> PutLocaleNameAsync(Locale dbObj, NewTextIdConcurrencyTokenItem inObj)
|
||||
{
|
||||
if (dbObj.Stock == true)
|
||||
{
|
||||
@@ -267,9 +267,9 @@ namespace AyaNova.Biz
|
||||
if (HasErrors)
|
||||
return false;
|
||||
|
||||
ct.SaveChanges();
|
||||
await ct.SaveChangesAsync();
|
||||
//Log
|
||||
EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbObj.Id, AyaType.Locale, AyaEvent.Modified), ct);
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, dbObj.Id, AyaType.Locale, AyaEvent.Modified), ct);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -587,7 +587,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
if (!NewLocaleDict.ContainsKey(s))
|
||||
{
|
||||
NewLocaleDict.Add(s, GetDefaultLocalizedText(s).Result);
|
||||
NewLocaleDict.Add(s, GetDefaultLocalizedTextAsync(s).Result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user