Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Web API: Controllers minor design choice

$
0
0

Good day everyone.

I'm trying to create an API for Project management.

Every project has a set of tasks so my models are Project and Task.

I've created a ProjectController class that allows for CRUD operations for a project object. (Create and Update operations overlook the tasks attribute of the project)

Now here's what I'm not sure about: should I also have a seperate TaskController class to allow for CRUD task operations too? or should I put them along with the project controller.

Thank you.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>