This commit is contained in:
2018-09-21 00:05:03 +00:00
parent 94d8fd8985
commit 088fe9a650
6 changed files with 177 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
namespace AyaNova.Api.ControllerHelpers
{
internal static class UserLocaleIdFromContext
{
internal static long Id(IDictionary<object, object> HttpContextItems)
{
long? l = (long?)HttpContextItems["AY_LOCALE_ID"];
if (l == null)
return AyaNova.Util.ServerBootConfig.AYANOVA_DEFAULT_LANGUAGE_ID;
return (long)l;
}
}
}//eons