Send List of data to web api using httppost from c#
public Result SaleListSend(string _baseUrl, Token token, List<SaleViewModel> list) { var client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.AccessToken); var serializedDate = JsonConvert.SerializeObject(list); var content = new StringContent(serializedDate, Encoding.UTF8, "application/json"); using (var response = client.PostAsync(_baseUrl + "api/Sale/PostSales", content)) { if (response.Result.IsSuccessStatusCode) { string st...