private async Task <IdentityResult> CreateAccountAsync(SignUpDto signUpDto)
        {
            SwmsUser swmsUser = new SwmsUser();

            swmsUser.Email    = signUpDto.Email;
            swmsUser.UserName = signUpDto.UserName;
            return(await _userManager.CreateAsync(swmsUser, signUpDto.Password));
        }
        async Task <ActionResult <SwmsUser> > ISwmsAuthorizer.SignUp(ControllerBase controllerBase, SignUpDto signUpDto)
        {
            _logger.LogInformation("Signing up new user");
            IdentityResult identityResult = await CreateAccountAsync(signUpDto);

            if (!identityResult.Succeeded)
            {
                return(controllerBase.BadRequest(identityResult.Errors));
            }
            return(controllerBase.Ok());
        }