- How to make data displayed, for "Order" indicated OrganizationUnits?
- How to make sure that the "Orders" are only robbed of the user he logged in to?
- ABP Framework version: v2.9.0
- UI type: MVC
- Tiered (MVC) or Identity Server Seperated (Angular): no
9 Answer(s)
-
0
can you check this https://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units#common-use-cases it's very similar
-
0
Yes, this is what you need, but how to organize it in DDD correctly. The organization of the AspNetBoilerplate methods is different. Could you do an example for DDD
-
0
if the aspnetboilerplate implementation doesn't help you, we can write a doc about this usage, but this can be in v3.0 or in v3.1.
-
0
It was wonderful and not only for me!
-
0
Yes, this is a great example. But I had a question how to implement it in Application Layer?
-
0
hello @wai,
I would consider adding a method to repository something like
GetOrdersOfTheCurrentUsersAsync
then calling it on application layer. Sample is here: https://github.com/abpframework/abp-samples/tree/master/OrganizationUnitSample#filter-entities-for-a-user -
0
I did the same as in your example. I don't quite understand how to call them on the page?
-
0
hi @wai, as I understand from your question you don't know basics of the application. you can create an application service and call the domain services in this new service. all application services are being exposed as WebAPIs by default. you can check Swagger to see how it can be called via JavaScript. also see https://docs.abp.io/en/abp/latest/Application-Services