This commit is contained in:
@@ -12,14 +12,16 @@ namespace AyaNova.Util
|
||||
/// </summary>
|
||||
internal static class ServerGlobalBizSettings
|
||||
{
|
||||
internal static GlobalBizSettings Cache {get;set;}
|
||||
internal static GlobalBizSettings Cache { get; set; }
|
||||
/// <summary>
|
||||
/// Populate and / or create the settings
|
||||
/// </summary>
|
||||
internal static void Initialize(GlobalBizSettings global, AyContext ct = null)
|
||||
internal static void Initialize(GlobalBizSettings global, AyContext ct)
|
||||
{
|
||||
if (global == null)
|
||||
{
|
||||
{
|
||||
|
||||
|
||||
//fetch or create as not provided (meaning this was called from Startup.cs)
|
||||
global = ct.GlobalBizSettings.FirstOrDefault(z => z.Id == 1);
|
||||
if (global == null)
|
||||
@@ -29,7 +31,7 @@ namespace AyaNova.Util
|
||||
ct.SaveChanges();
|
||||
}
|
||||
}
|
||||
Cache = global;
|
||||
Cache = global;
|
||||
}
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user