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); }
public LoginController(ILoginViewRepository loginRepository, ContextUserProvider userProvider, ICommandHandler <LoginCommand> loginHandler) { _loginHandler = loginHandler; _loginRepository = loginRepository; _userProvider = userProvider; }