problem with get method :: When i have two modules how can i in module 2 reach the da

When i have two modules how can i in module 2 reach the database in module 1 i used the dependancy but after that it appear in module 2 that i can not use the methods in server action like create or ubdate or delete etc.. 

but there is a get method how can i from the get method edit the data by implement  create or ubdate or delete .

thank you

By making the entity public, you will still not be able to use the create, update or delete actions. To do that you need to set Expose Read only to false.

But having said that: This is not recommended. 

The way to go is to create public actions to do the CRUD actions. This will also allow you to build in validations etc.

Thank you

@Stefano Valente  Thanks corrected, @Ali Alshehri  Kindly refer below screenshot

Thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.