skip to Main Content

.NET 6 Service: how to pass JSON inside JSON?

I am developing a .NET 6 web service (with Startup), one of methods is public async Task<ActionResult> PutDirector([FromBody] Director director, CancellationToken cancellationToken) { var title = nameof(PutDirector); // .... } Using Swagger I pass this JSON: { "id": 2, "firstName":…

VIEW QUESTION
Back To Top
Search