Exemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(CancellationToken cancellationToken)
        {
            //service will create or update user information as needed
            var(userCreated, userName, userEmail) = await _userService.CreateUpdateUserAsync(cancellationToken);

            if (userCreated)
            {
                UserCreated = true;
                await _sendEmail.SendUserCreatedEmailAsync(userName, userEmail);
            }

            return(Page());
        }