public IEnumerable <Resource <User> > GetUsers() { var provider = new UserProvider(_credentialManager); return(provider.GetAll()); }
public void Login(string email, string password) { var provider = new UserProvider(_credentialManager, true, false); provider.Login(email, password); }
public void ChangePassword(Guid userId, string newPassword, string oldPassword) { var provider = new UserProvider(_credentialManager, true); provider.ChangePassword(userId, newPassword, oldPassword); }
public Resource <User> GetUser(Guid userId) { var provider = new UserProvider(_credentialManager); return(provider.GetById(userId)); }