Add view location

 In ASP.NET Core MVC, here’s how to add a new default location to find views:

services.AddControllersWithViews().AddRazorOptions(options => 
    options.ViewLocationFormats.Add("/Views/SpecialPlace/{0}.cshtml"))

Comments

Popular posts from this blog

Left Join in Entity Framework

C# Record Serialization

Mustache with JavaScript in Browser