- Use
[ApiController]and[Route("api/[controller]")]attributes on controllers. - Use
[HttpGet],[HttpPost], etc., to define actions.
[ApiController] and [Route("api/[controller]")] attributes on controllers.[HttpGet], [HttpPost], etc., to define actions.
Student
I am Utpal Vishwas from Uttar Pradesh. Have completed my B. Tech. course from MNNIT campus Prayagraj in 2022. I have good knowledge of computer networking.
Can you answer this question?
Write Answer0 Answers