20 lines
432 B
C#
20 lines
432 B
C#
using EnumsNET;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AyaNova.Api.ControllerHelpers
|
|
{
|
|
|
|
internal static class UserLocaleIdFromContext
|
|
{
|
|
internal static long LocaleId(IDictionary<object, object> HttpContextItems)
|
|
{
|
|
|
|
long? l = (long?)HttpContextItems["AY_LOCALE_ID"];
|
|
if (l==null)
|
|
return 0L;
|
|
return (long)l;
|
|
}
|
|
}
|
|
|
|
|
|
}//eons |