How to save dynamic layer or map?

i am looking for a method to save the dynamic layer i have or the map on my database.
i couldn’t find method to export the map or the dynamic layer?
any clue will help!