Yup yup.
Imagine a template through uhm, Books. So I have access to a book item
inside the template.
Inside that template I want to use a Html.ActionLink from MVC 3.
I want that ActionLink to call an action from a controller and I want
to pass a parameter, the book's Id.
The question is: How I can assign the Id parameter of the book to the
ActionLink?
On a normal MVC 3 foreach, I can do:
@foreach(var book in books)
{
Html.ActionLink("Name", "Action", new { controller = "controller,
id = book.Id})
}
But inside a template I don't know how to assign the book's Id.
I can assign a text to an input using data-bind="text: Title", I can
print my title using ${title} but how I can assign Title or Id to the
ActionLink?
Better? :)