I want to send an object (DataSet) From the windows application to the .netcore API
something like this (Windows Application side)
public string submitRequest(Dataset request)
{
.
.
.
using (client)
{
client.Headers["Content-Type"] = "application/json; charset=utf-8";
byte[] result = client.UploadValues(Url, "POST", request);
return Encoding.UTF8.GetString(result);
}
}
(.netcore API)
public string submitRequest( values)
{
// processing values
}
I try to convert to json and try NameValueCollection but no result.