private void button1_Click(object sender, EventArgs e)
{
Process.Start("CMD.exe", "/C dotnet run");
var client = new RestClient("http://localhost:5000");
var request = new RestRequest(Method.Post.ToString());
request.AddParameter("text/plain", "mesaj1", ParameterType.RequestBody);
RestResponse response = client.Execute(request);
}