Open Closed

How to inject OrganizatioUnitManger create service so that it create endpoints in swagger - In Community Version #3483


User avatar
0
AbdullahDev created

I have read the docs

https://docs.abp.io/en/abp/3.1/Modules/Organization-Units#:~:text=Organization%20Unit%20Management,hierarchically%20group%20users%20and%20entities.

In it docs show that OrganiationUnitManager class can be injected for Crud

How can we create a service for that ,We can have endpoints for OrganizationUnitManager.

I have also looked at sample project OrganizationUnitSample in the repo

I couldn't understand how to use the OrganizationUnitManger class and create endpoints for it so i can create a own custom ui, that is utilizing those endpoints


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can create a new app service and inject the OrganizationUnitManager to manage the Organizations.

    https://docs.abp.io/en/abp/latest/Modules/Identity#organizationunit-manager

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11