i have a setup where as app service brings data from another app. This data is userrole restricted. However when 2 users who has the same role tries to access this SUB MF, even though i have written a create/retrieve SUB MF the instances for this entity(which is created from this incoming data) gets duplicated.
the SUB MF which calls this operation is immediately followed by a page with a datagrid which shows the prepared data.
So somehow i have to stop the concurrent execution on this SUB MF. 1 possible way out is placing a delay, which is not really nice.
Any suggestions?