Skip to content

Commit

Permalink
removed expando object in favour of dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
paullocknimble committed Dec 4, 2023
1 parent 2065897 commit 547a0e8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ public async Task<HttpResponseMessage> AddProjectNote(int id, AddProjectNote pro

public async Task<HttpResponseMessage> 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));
}
Expand Down

0 comments on commit 547a0e8

Please sign in to comment.