I have a business logic layer in a C# project and I need to find a way to generate a url based on the base url that is running the web site.
For example, this is the url: http://localhost:56240/Management/Quiz.aspx?QuizID=46
I need a way to get this part: http://localhost:56240 using a C# code from the business logic layer (means I don't can't use the Request object or context.Request).
Is there a way to do that ?