2016-08: updated to be valid for ASP.NET Core 1.0 Sometimes it would be really useful to include Razor/C# code...