Hi i am having problem inserting data into multiple table from one view. First understand the scenario: I have a student table and a student name table. Name table contains Firstname, Middlename, Lastname. Student table contains a foreign key of name table Id. I made a data model by ADO.net. Now how can i pass both Student and Name data to the Create student View?
//StudentsController: Create View [GET Method]
public ActionResult Create()
{
return View();
}
//Create View
Inherits="System.Web.Mvc.ViewPage<DomainModel.Models.Student>"