How can I specify the id of the record as an optional parameter in the UrlAction?
@model IEnumerable<
proITdesk.Database.Models.Address
>
...
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
<
a
href
=
'@Url.Action("Details", "Addresses", new { Id = "#=Id#" }.ToString())'
>
<
div
class
=
"widget-primary"
>
<
h4
style
=
"text-align:center"
>#:Name#</
h4
>
<
img
src
=
"@Url.Content("
~/content/web/foods/")#:Id#.jpg"
alt
=
"#:Name# Image"
/>
</
div
>
</
a
>
</
script
>