Invoke C# code in UiPath

Hi Guys,
I want to invoke below C# code in UiPath

var client = new RestClient(“https://test.com/api”);
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader(“Content-Type”, “multipart/form-data”);
request.AddHeader(“Authorization”, “Basic authCode”);
request.AddFile(“attachments”, “/D:/Attachments/test.png”);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

But I am getting a few errors
image

I have added the RestSharp package to my project. Am I missing something?