My controller code looks like this:
[Route("api/[controller]")]
[ApiController]
public class PaymentDetailController : ControllerBase
{
[HttpGet]
public async Task<string> GetPaymentDetail()
{
return "Success";
}
}
I am trying to access like this
http://localhost:47744/api/paymentdetail
http://localhost:47744/api/paymentdetail/GetPaymentDetail
I cant access my controller and method

paymentdetailis the name of the controller -GetPaymentDetailis the action method - which gets combined to a complete URL of/api/paymentdetail/GetPaymentDetail- as desired - so what's the issue or question, really???