0
marble68 created
But in the MVC, I want to get a setting while in a controller.
I'm running 8.7, Jquery
Specifically, I'm after the setting WebSiteRootAddress
somthing like:
string myUrl = "";
string myUrl += <get WebSiteRootAddress from appsettings.json>; // <-- How do I do this?
string myUrl += "/Take/" + employee.Id;
ViewBag.myUrl = myUrl;
Thanks.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
hi
You can use IWebUrlService.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)