I have this code that creates an url
<a href="ContactInformation/CreateContactInformation/[email protected]" class="ContactInformationEdit">Add New</a>
(I couldnt find out how to make an actionlink that used an action, controller, object and where I could put a classname on for use in javascript)
That gives a link like this http://localhost:51730/ContactInformation/CreateContactInformation/dossierId=1
I then have a controller action
[HttpGet]
public ActionResult CreateContactInformation(int? dossierId)
{
return PartialView("ContactInformationCreate", new ContactInformationViewModel(dossierId.Value));
}
But if I put a breakpoint in that code then the variable is just "null" doing a request param gives same result