示例#1
0
        public GeneratePasswordModel GetAllProducts(GeneratePasswordOptions options)
        {
            var requestOptions = options ?? new GeneratePasswordOptions();
            var password       = _service.GeneratePassword(requestOptions);

            return(new GeneratePasswordModel(password, requestOptions));
        }
        public ActionResult Index()
        {
            var options     = new GeneratePasswordOptions();
            var newPassword = _service.GeneratePassword(options);
            var model       = new GeneratePasswordModel(newPassword, options);

            return(View(model));
        }