From 547a0e87dd0435aa2d98ce895a81a667da1018c2 Mon Sep 17 00:00:00 2001 From: plockwood Date: Mon, 4 Dec 2023 12:10:29 +0000 Subject: [PATCH] removed expando object in favour of dynamic --- .../Dfe.PrepareConversions.Data/Features/ApiClient.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Features/ApiClient.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Features/ApiClient.cs index 5f530822b..b180371ab 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Features/ApiClient.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Features/ApiClient.cs @@ -59,9 +59,11 @@ public async Task AddProjectNote(int id, AddProjectNote pro public async Task SetProjectExternalApplicationForm(int id, bool externalApplicationFormSaved, string externalApplicationFormUrl) { - dynamic payload = new ExpandoObject(); - payload.externalApplicationFormSaved = externalApplicationFormSaved; - payload.externalApplicationFormUrl = externalApplicationFormUrl ?? string.Empty; + var payload = new + { + externalApplicationFormSaved = externalApplicationFormSaved, + externalApplicationFormUrl = externalApplicationFormUrl ?? string.Empty + }; return await AcademisationClient.PutAsync(string.Format(PathFor.SetExternalApplicationForm, id), JsonContent.Create(payload)); }