21 lines
461 B
C#
21 lines
461 B
C#
using EnumsNET;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AyaNova.Api.ControllerHelpers
|
|
{
|
|
|
|
|
|
internal static class UserNameFromContext
|
|
{
|
|
internal static string Name(IDictionary<object, object> HttpContextItems)
|
|
{
|
|
string s = (string)HttpContextItems["AY_USERNAME"];
|
|
if (string.IsNullOrWhiteSpace(s))
|
|
return "UNKNOWN USER NAME";
|
|
return s;
|
|
}
|
|
}
|
|
|
|
|
|
}//eons
|