How can I pass field value to @Url.Action or @Url.RouteUrl in my razor view? I am going to use it in my template.
@Url.Action("MyAction", "MyController", new { Id = Id = #=Id# })
@Url.RouteUrl("MyRouteTemp", new { Id = #=Id# }, webHelper.CurrentRequestProtocol);
template: "<a href='" + @Url.Action("MyAction", "MyController", new { Id = Id = #=Id# })'>View Details</a >",