Hi, right now I want to populate main table with put method for any components input ...
async Task SaveDescription(int actionId)
{
await client.PutAsJsonAsync($"api/etude/{actionId}",developers);
uriHelper.NavigateTo("etude");
}
I received the message

To fix the 1st message I modify w/o
async Task SaveDescription(int actionId)
{
var options = new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true
};
await client.PutAsJsonAsync($"api/etude/{actionId}",developers, options);
uriHelper.NavigateTo("etude");
}
for 2 point I don't understand why the actionItem field is required because I've declared ActionItems as nullable in my class SuiviBE
public class SuiviBE
{
[Key]
public int SuiviBEId { get; set; }
...
public List<ActionItem>? ActionItems { get; set; }
}
So in the class ActionItem I've declared SuiviBE as below
public class ActionItem
{
public int ActionItemId { get; set; }
...
public int SuiviBEId { get; set; }
[JsonIgnore]
public SuiviBE? SuiviBE { get; set; }
}
I would like to know if is due to [JsonIgnore]
attibute ?