This is my first question on stack overflow.I have two tables in database "Document" and "User". User id is a foreign key in Document table. I want to get all records from document where UID is equal to current user ID. I have current user ID. suppose ID is 1. so how i can get all value from Document where UID is equal to 1. Second question is that how i can delete all records where user name is 1.
I want this all in action method How i can do this?
Aucun commentaire:
Enregistrer un commentaire