My action link in .cshtml is like this:
@Html.ActionLink("Reply", "Post_Reply", new { item.ID, item.Post_ID, item.Reply_ID })
and my method in controller is like this:
[Authorize]
public ActionResult Post_Reply(int PostId=0, int Id = 0, int ReplyId = 0)
{
post posts = new post();
posts.ID = Id;
return View(posts);
}
but only value of item.ID is getting passed, other two values item.Post_ID and item.Reply_ID are not getting passed.. Can anyone please guide me.. thanks..