Mangesh barmate

Mangesh barmate

  • NA
  • 118
  • 132.6k

How to pass complete model data to the @Html.ActionLink ?

Jan 19 2016 11:40 PM

Hi Team,

I have a Model on my View, i want to pass that Model to the @Html.ActionLink, i have tried by some google articles, found not fruitful. Within my model i have two another model for ex. lets consider below is my model structure-

Public class TestModel

{

public Test1Model test1{get;set;}

public Test2Model test2{get;set;}

}

Now, i want to pass TestModel to the @Html.ActionLink and want to access as a parameter to the action of controller.

Please suggest if someone have a nice approach on his.

Thanks.


Answers (1)