using Microsoft.AspNetCore.Mvc;
namespace Web.Controllers;
[Route("test")]
public class TestController : ControllerBase
{
private readonly ILogger<TestController> logger;
public TestController(ILogger<TestController> logger)
{
this.logger = logger;
}
[HttpPost("test/{id}")]
public ActionResult Test(string id)
{
this.logger.LogInformation("Hello {Id}", id);
return this.Ok("Format me");
}
}
dotnet dotnet-formatthe file is formatted as follows:dotnet-formatwill not format wrongly the file.