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)); }