public async Task <ActionResult> Post([FromBody] Ingredientes entity) { string apiUrl = "http://localhost:8110/api/Ingredienstes"; using (HttpClient client = new HttpClient()) { var content = new StringContent(entity.ToString(), Encoding.UTF8, "application/json"); var result = await client.PostAsync(apiUrl, content); return(View(result)); } }