Port from HTML to Razor