I have an async method:
public async Task ValidateRequestAsync(string userName, string password) { using (HttpClient client = new HttpClient(
you could use return ValidateRequestAsync(userName, password).GetAwaiter().GetResult();
return ValidateRequestAsync(userName, password).GetAwaiter().GetResult();