コード例 #1
0
        public Profile.Repository.Entity.UserAccount GetCurrentUser()
        {
            var curUser = new ContextUserProvider(Repository, _context).ContextUser(false);

            if (null == curUser)
            {
                curUser = new Profile.Repository.Entity.UserAccount();
            }
            return(curUser);
        }
コード例 #2
0
 public LoginController(ILoginViewRepository loginRepository, ContextUserProvider userProvider, ICommandHandler <LoginCommand> loginHandler)
 {
     _loginHandler    = loginHandler;
     _loginRepository = loginRepository;
     _userProvider    = userProvider;
 }