Hi,
I have:
"Task" Entity that holds a foreignkey to a "Project" Entity. In the MVC model I have a ProjectDetails view where i have a ActionLink for creating a new Task
I need to set the ProjectReference for the new Task object.
The projectReference is passed by a url parameter (CreateTask?projectId=4
)
In the projectDetails view I have:
<%= Html.ActionLink("Create New Task", "CreateTask", new {???Set the ProjectID??? })%>
1) How to set the ProjectReference "ProjectID"?
2) Is using ViewContext.Controller.ValueProvider["id"].RawValue
for getting the urlparameter good?
Thank you!!