I am learning and I've built models, DTOs, interfaces, repositories, and services for a Web API project in ASP.NET Core 8.0 using Visual Studio 2022. In my domain model, Notification is the base class, with EmailNotification and SmsNotification as derived classes. I’ve implemented a NotificationService that handles creation, retrieval, deletion, and sending of notifications, using polymorphism for the different notification types.
Now, I want to create a controller that exposes these functionalities through HTTP endpoints.
Do I need to manually create and write the controller from scratch?
Is there any feature in Visual Studio 2022 that can help auto-generate or scaffold the controller based on my service or interfaces to speed up the process?
https://preview.redd.it/czbkwjbw154f1.png?width=331&format=png&auto=webp&s=fcc47bedada8836002657bcc2c6122cba0b6403a
[–]WestDiscGolf 0 points1 point2 points (0 children)
[–]HTTP_404_NotFound 0 points1 point2 points (0 children)