OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.25k stars 2.35k forks source link

Extract common content item saving and publishing apis #15459

Open hyzx86 opened 4 months ago

hyzx86 commented 4 months ago

Currently, it seems that the most complete management of content items is done through the controller.

Can we extract the logic into the ContentManager class to simplify the secondary development process?

MikeAlhayek commented 4 months ago

I don't think it is needed. But if you were to go down that route, I would not pollute the ContentManager with that logic. You could introduce ContentService that would wrap that logic.