Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Dynamic routing problem

$
0
0
Hello everyone,

I'm developing a multilingual website. I read menus from db

E.g : Contact - en

Kommunikation - de

I have contactController.cs

[Route(“{LangCode}/contact”)]
[Route(“{LangCode}/kammunikation”)]

..............Task Index()

return View()


I dont want this usage.

If i have 5 language, I read menu names from table

And create dynamic routes and redirect contactconroller

I use .net core 2.2

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>