Adds URL solving service based on action and controller names

This commit is contained in:
BinaryAlley committed 2024-11-11 15:13:59 +02:00
1 parent bd97c2e8c1
commit abc2777357
2 files changed
+50

No files matched your search

@@ -0,0 +1,12 @@
namespace Lumina.Presentation.Web.Common.Services;
public interface IUrlService
{
/// <summary>
/// Generates an absolute URL for the specified controller action.
/// </summary>
/// <param name="action">The action name within the controller.</param>
/// <param name="controller">The controller name.</param>
/// <returns>An absolute URL to the specified action.</returns>
string? GetAbsoluteUrl(string action, string controller);
}