示例#1
0
        public async Task <IActionResult> KycUpgrade()
        {
            if (!_kycSettings.KycServerEnabled)
            {
                _logger.LogError("kyc server not enabled");
                return(NotFound());
            }
            var user = await GetUser(required : true);

            var _model = RestUtils.CreateKycRequest(_logger, _context, _userManager, _kycSettings, user.Id, user.Email);

            if (_model != null)
            {
                this.FlashSuccess("Created KYC upgrade request");
            }

            return(RedirectToAction(nameof(Kyc)));
        }