Пример #1
0
        public UserService(ICTX _ctx)
        {
            ctx = _ctx;

            _identity = WindowsIdentity.GetCurrent();
 

            User = ctx.DBUsers.Where(x => x.username == _identity.Name).FirstOrDefault<DBUser>();


        
        }
Пример #2
0
        public AuthProvider(ICTX _ctx)
        {
            ctx = _ctx;
            us = new UserService(_ctx);

        }