private async Task <Api3Order> RequestAndFetchXmlResponse(string apiUrl, Api3Order api3Order) { var request = new RestRequest { RequestFormat = DataFormat.Xml, XmlSerializer = new DotNetXmlSerializer() }; request.AddXmlBody(api3Order); var client = SetUpClient(apiUrl); var response = await client.PostAsync <Api3Order>(request); return(response); }
public async void Post([FromBody] Api3Order order) { string url = $"{BaseUrl}/api/orders/postapi3"; await ReturnValueToMainController(url, QUOTE); }