Pass parameter to controller from @Html.ActionLink MVC 4
- by NetraSW
Hello All,
@Html.ActionLink("Reply", "BlogReplyCommentAdd", "Blog",
new { blogPostId = blogPostId, replyblogPostmodel = Model,
captchaValid = Model.AddNewComment.DisplayCaptcha })
In above line: I get error on blogPostId.
The parameters dictionary contains a null entry for parameter
'blogPostId' of non-nullable type…