Schleid Alex

Schleid Alex

  • 1.8k
  • 122
  • 1.1k

Passing information from view to different models

Feb 20 2020 8:50 PM
Hi,
 
I need show a registration form where information will be taken from two tables, users and address. Information from these two tables should be presented to the user in one view, I have some idea on how to do that just looking for the best way.
1) I can have a class that contain information from those two tables and pass it to the controller then to the view
is this the best way?
2) Now the user has filled the form I need to post it back to those two tables
 
Thanks for your help
 
Schleid

Answers (8)