public async Task <IActionResult> Login(LoginRequest request) { LoginResponse response = await _authService.LoginAsync(request); if (response.IsValid()) { return(Ok(response)); } return(BadRequest(response.GetErrors())); }