示例#1
0
        public IEnumerable <Resource <User> > GetUsers()
        {
            var provider = new UserProvider(_credentialManager);

            return(provider.GetAll());
        }
示例#2
0
        public void Login(string email, string password)
        {
            var provider = new UserProvider(_credentialManager, true, false);

            provider.Login(email, password);
        }
示例#3
0
        public void ChangePassword(Guid userId, string newPassword, string oldPassword)
        {
            var provider = new UserProvider(_credentialManager, true);

            provider.ChangePassword(userId, newPassword, oldPassword);
        }
示例#4
0
        public Resource <User> GetUser(Guid userId)
        {
            var provider = new UserProvider(_credentialManager);

            return(provider.GetById(userId));
        }