|
55 | 55 | public async Task SaveReport(SaveReportArgs args) |
56 | 56 | { |
57 | 57 | string url = "https://localhost:44313/Pivot/SaveReport"; |
58 | | - var data = new { ReportName = args.ReportName, Report = args.Report }; |
| 58 | + var data = new { reportName = args.ReportName, report = args.Report }; |
59 | 59 | HttpContent content = new StringContent(JsonSerializer.Serialize(data), System.Text.Encoding.UTF8, "application/json"); |
60 | 60 |
|
61 | 61 | using (HttpClient httpClient = new HttpClient()) |
|
67 | 67 | public async Task FetchReport(FetchReportArgs args) |
68 | 68 | { |
69 | 69 | string url = "https://localhost:44313/Pivot/FetchReport"; |
70 | | - var data = new { ReportName = args.ReportName }; |
| 70 | + var data = new { reportName = args.ReportName }; |
71 | 71 | HttpContent content = new StringContent(JsonSerializer.Serialize(data), System.Text.Encoding.UTF8, "application/json"); |
72 | 72 | List<string> reportNames = new List<string>(); |
73 | 73 | using (HttpClient httpClient = new HttpClient()) |
|
86 | 86 | public async Task LoadReport(LoadReportArgs args) |
87 | 87 | { |
88 | 88 | string url = "https://localhost:44313/Pivot/LoadReport"; |
89 | | - var data = new { ReportName = args.ReportName }; |
| 89 | + var data = new { reportName = args.ReportName }; |
90 | 90 | HttpContent content = new StringContent(JsonSerializer.Serialize(data), System.Text.Encoding.UTF8, "application/json"); |
91 | 91 | string responseText = string.Empty; |
92 | 92 | using (HttpClient httpClient = new HttpClient()) |
|
105 | 105 | public async Task RemoveReport(RemoveReportArgs args) |
106 | 106 | { |
107 | 107 | string url = "https://localhost:44313/Pivot/RemoveReport"; |
108 | | - var data = new { ReportName = args.ReportName }; |
| 108 | + var data = new { reportName = args.ReportName }; |
109 | 109 | HttpContent content = new StringContent(JsonSerializer.Serialize(data), System.Text.Encoding.UTF8, "application/json"); |
110 | 110 |
|
111 | 111 | using (HttpClient httpClient = new HttpClient()) |
|
0 commit comments