I'm new to ASP.NET MVC3. I have created one project in ASP.NET MVC3 using Model First approach.
I'm having following entities: Customer
and Call
Relation between these entities are one (Customer) has many (Calls). I created controllers for both of those entities.
The issue is that on the Customer's index view I added ActionLink for adding a call for particular customer. Code for this is as follows:
@Html.ActionLink("+Call", "Create", "Call", new { id = item.CustomerId }, null)
After clicking on this link it is opening create view of call. On the Call create view I want to show name of particular customer.
How to use the passed CustomerId? How to do this?