How do i generate an absolute url from the c# code?
I want to generate a url like this: localhost/{controller}/{action}/{id}
. Is there a way to do it in c# like how it can be done in the views?
It wont be generated inside the controller but inside a ViewModel.