| | |
| | | _logger = logger; |
| | | } |
| | | |
| | | public async Task FeedbackInbound(string url, FeedbackInboundRequestModel model) |
| | | public async Task FeedbackInbound( FeedbackInboundRequestModel model) |
| | | { |
| | | string json = JsonConvert.SerializeObject(model); |
| | | var content = new StringContent(json, Encoding.UTF8, "application/json"); |
| | |
| | | _client.DefaultRequestHeaders.Clear(); |
| | | _client.DefaultRequestHeaders.Add("Accept", "application/json"); |
| | | |
| | | var response = await _client.PostAsync(url, content); |
| | | var response = await _client.PostAsync("AldMaterialWarehousing/MaterialWarehousing", content); |
| | | string body = await response.Content.ReadAsStringAsync(); |
| | | |
| | | if (!response.IsSuccessStatusCode) |
| | |
| | | // JsonConvert.DeserializeObject<ResponseModel>(body); |
| | | } |
| | | |
| | | public async Task FeedbackOutbound(string url, FeedbackOutboundRequestModel model) |
| | | public async Task FeedbackOutbound( FeedbackOutboundRequestModel model) |
| | | { |
| | | string json = JsonConvert.SerializeObject(model); |
| | | var content = new StringContent(json, Encoding.UTF8, "application/json"); |
| | |
| | | _client.DefaultRequestHeaders.Clear(); |
| | | _client.DefaultRequestHeaders.Add("Accept", "application/json"); |
| | | |
| | | var response = await _client.PostAsync(url, content); |
| | | var response = await _client.PostAsync("AldMaterialOutbound/MaterialOutbound", content); |
| | | string body = await response.Content.ReadAsStringAsync(); |
| | | |
| | | if (!response.IsSuccessStatusCode) |