public async Task <IActionResult> RefleshTokenAsync(TokebDto tokenDto)
        {
            try
            {
                var token = await _tokenService.RefleshTokenAsync(tokenDto.RefreshToken);

                return(Ok(token));
            }
            catch (System.Exception ex)
            {
                return(BadRequest(new { message = ex.Message }));
            }
        }
        public async Task <IActionResult> GetToken(TokebDto tokenDto)
        {
            try
            {
                var token = await _tokenService.GetTokenAsync(tokenDto.Email, tokenDto.Password);

                return(Ok(token));
            }
            catch (System.Exception ex)
            {
                return(BadRequest(new { message = ex.Message }));
            }
        }