public UserService(ICTX _ctx) { ctx = _ctx; _identity = WindowsIdentity.GetCurrent(); User = ctx.DBUsers.Where(x => x.username == _identity.Name).FirstOrDefault<DBUser>(); }
public AuthProvider(ICTX _ctx) { ctx = _ctx; us = new UserService(_ctx); }