Пример #1
0
 public string Action3(Foobarbaz value1, [FromBody] Foobarbaz value2)
 => JsonSerializer.Serialize(new { Value1 = value1, Value2 = value2 }, _options);
Пример #2
0
 public string Action2(Foobarbaz value1, Foobarbaz value2)
 => JsonSerializer.Serialize(new { Value1 = value1, Value2 = value2 }, _options);