.NET Router

// Some code
Method A:
[Route("api/[controller]")]
[ApiController]
[AllowAnonymous]

1. [HttpGet("list")]
or 
2. [HttpGet]
   [Route("list")]


Method B:
[ApiController]
[AllowAnonymous]

  [Route("api/company/list")]

Last updated