0
I would like to know how to send an object as a parameter to an API made in ASP.NET and return data by the same way?
I understand that the simple method of a Get is:
HttpClient cliente = new HttpClient();
string url = "http://localhost:50501/api/values/ListaContatos";
var response = await cliente.GetStringAsync(url);
var contatos = JsonConvert.DeserializeObject<List<Contato>>(response);
return contatos;
... How I would send an object and return data?