I need to convert this restsharp code to c# HttpClient code. How would I go about that?
var client = new RestClient("http://localhost:61375/token");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded",
"grant_type=password&username=UserName&password=pa%24%24w0rd",
ParameterType.RequestBody);
IRestResponse response = client.Execute(request);