namespace SynchronousWithNewtonsoftJson.Controllers; using Microsoft.AspNetCore.Mvc; public class RootMenu : Controller { [HttpGet("/menu")] public ContentResult GetMenu() { return new ContentResult() { ContentType = "text/html", Content = @" ASP.NET Core Streaming Sample - Asynchronous using System.text.Json

ASP.NET Core Streaming Sample

Synchronous using Newtonsoft.Json

/v1/sing – Get song lyrics from a Controller
/middleware/sing – Get song lyrics from Middleware " }; } }