public IActionResult Login([FromBody] UserForLoginDto userForLoginDto) { var userToLogin = _authAppService.Login(userForLoginDto); if (userToLogin.Success != true) { return(BadRequest(userToLogin.Message)); } var result = _authAppService.CreateAccessToken(userToLogin.Data); if (result.Success != true) { return(BadRequest(result.Message)); } return(Ok(result.Data)); }