Is there an easy way to pass an object from my controller to view to controller?
I tried ViewData["compaignId"] but that didn't work.
Controller "Content" :
ViewData["CompaignId"] = id;
View "Content" :
<div>
@Html.ActionLink("Go To Team Creation", "Team", ViewData["CompaignId"])
</div>
Controller "Team":
public ActionResult Team(long CompaignId)
{
....
}
Thanks,