I would like to know how to send an object as a parameter to an API made in ASP.NET and return data by it?
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 would I do to send an object and return data?