skip to Main Content

How to add a subroute in controller method – Asp.net

I've created a controller class: [Route("api/[controller]")] [ApiController] public class CourseController : ControllerBase I've got methods for the route declared in the attribute above but I also want to handle a subroute, eg. "api/[controller]/{id}/course_subjects". I've tried adding the Route attribute to…

VIEW QUESTION
Back To Top
Search