This commit is contained in:
2018-08-28 00:03:06 +00:00
parent 82bd65cf49
commit b60dc75c8e
9 changed files with 85 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
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