Hi,
I am working on ASP.NET MVC5.
I have a two class that has many fields. In a different view, I want to insert two fields from on table and a list of one field from the other class.
Table A
CentreId
AdminId (UserId)
CentreName
Address
Phone
Table B
UserId
FirstName
LastName
Email
Password
The view will have fields like below
First Name
Last Name
Email
Centres
-------List the centres based on the UserId-------
Button Save
When the save button is clicked, I wish to add the details to another table like below
Table C
TeacherId
AdminId
CenterId
How can I accomplish this? Please help
Thanks
I am working on ASP.NET MVC5.
I have a two class that has many fields. In a different view, I want to insert two fields from on table and a list of one field from the other class.
Table A
CentreId
AdminId (UserId)
CentreName
Address
Phone
Table B
UserId
FirstName
LastName
Password
The view will have fields like below
First Name
Last Name
Centres
-------List the centres based on the UserId-------
Button Save
When the save button is clicked, I wish to add the details to another table like below
Table C
TeacherId
AdminId
CenterId
How can I accomplish this? Please help
Thanks