I have strongly typed list view
I have custom html helper which must get IEnumerable<object>
does it possible to pass my model(@model IEnumerable<MvcApplication2.Models.UserViewModel>) to my html helper?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your helper is defined like this:
then it is not possible to call it like this:
If on the other hand it is defined like this:
you could call it from your view and pass the model: