Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generating a slug link in Razor
<a href="@(Url.Action("details", "cfp", new { id = Model.NewestCfp.Slug }))">
<img src="@Model.NewestCfp.EventImage" alt="Event image" style="object-fit:cover;">
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment