public async Task <IActionResult> Novo(PedidoNovoViewModel pedidoNovoViewModel) { HttpClient httpClient = new HttpClient(); httpClient.BaseAddress = new Uri(configurations.Configuration["ServicesReference:0:PdsControleVendasApi"].ToString()); var pedido = Newtonsoft.Json.JsonConvert.SerializeObject(pedidoNovoViewModel.ToPedido()); var response = await httpClient.PostAsync("/v1/pedido", new StringContent(pedido, Encoding.UTF8, "application/json")); if (response.StatusCode == HttpStatusCode.OK) { } return(RedirectToAction("Index")); }