I have a .NET Core project where based on the subdomain I will load different Layout.cshtml pages.
Based on the subdomain a query should be done in the database which will return a code. Based on this code in my ViewStart.cshtml I will load the different layouts.
How can I get the subdomain? And where?