16 lines
395 B
C#
16 lines
395 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Sockeye.Api.ControllerHelpers
|
|
{
|
|
internal static class UserIdFromContext
|
|
{
|
|
internal static long Id(IDictionary<object, object> HttpContextItems)
|
|
{
|
|
|
|
long? l = (long?)HttpContextItems["AY_USER_ID"];
|
|
if (l==null)
|
|
return 0L;
|
|
return (long)l;
|
|
}
|
|
}
|
|
}//eons |