Custom IViewLocationExpander and Multi-Brand Razor Class Libraries in ASP.NET Core MVC
A custom IViewLocationExpander lets one ASP.NET Core MVC application serve several brands without duplicating controllers or markup. The article shows how to make the brand part of the view-location cache key and probe brand-specific Razor paths before the shared fallbacks.