var Data = new MultipartContent() { {new StringContent("id"), "21"}, {new StringContent("name"), "test"}, {new StringContent("brand"),""}, }; How to send an empty parameter? Studio throws an exception.
var Data = new MultipartContent() { {new StringContent("id"), "21"}, {new StringContent("name"), "test"}, {new StringContent("brand"),""}, }; How to send an empty parameter? Studio throws an exception.
Most likely, you didn’t look at the example of using the specified library carefully enough. In the code you are trying to send a value without indicating which parameter it refers to.
{new StringContent ("brand"), ""},
need so
{new StringContent (""), "brand"},
Source: https://ru.stackoverflow.com/questions/564846/
All Articles