Пример #1
0
        public async Task <TokenDto> Login(LoginDto userDto)
        {
            await _accountService.LoginAsync(userDto);

            return(new TokenDto()
            {
                Token = await _jwtHelper.GenerateJsonWebToken(userDto)
            });
        }