When I'm use the function name like this the controller is not even hit why? But its working when I'm using like this GetAll(int id)
public IActionResult GetAllAsync(int id)
{
return View();
}
When I'm use the function name like this the controller is not even hit why? But its working when I'm using like this GetAll(int id)
public IActionResult GetAllAsync(int id)
{
return View();
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muthu vjPosted Dec 21, 2022, 9:58 AM
Hi Gobi,
GetAllAsync its a base Method Name so you cant use the same name in your Controller...
Rajeev KumarPosted Mar 2, 2023, 10:08 AM
GetAllAsync its a base Method Name so you cant use the same name in your Controller...