public UserPassword Post(CreateOneTimePassword request)
 {
     string password = PasswordGenerator.Generate();
     OneTimePasswordRepository.CreateOneTimePassword(request.UserId, password);
     return new UserPassword
     {
         UserId = request.UserId,
         Password = password
     };
 }
        public override int Run(string[] remainingArguments)
        {
            InitialiseClient();

            CreateOneTimePassword request = new CreateOneTimePassword
            {
                UserId = remainingArguments[0]
            };

            var response = client.Post<UserPassword>(request);

            if (response.Password != null)
            {
                Console.WriteLine("User Password: {0}", response.Password);
            }
            else
            {
                Console.WriteLine("Password not set or expired.");
            }
            return 0;
        }