mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-20 15:34:24 +01:00
Refactor: Remove cshtml duplication for back/url buttons in wizards
This commit is contained in:
@@ -12,6 +12,10 @@ namespace Microsoft.AspNetCore.Mvc
|
||||
public static class UrlHelperExtensions
|
||||
{
|
||||
#nullable enable
|
||||
public static string? WalletSend(this IUrlHelper helper, WalletId walletId) => helper.Action(nameof(UIWalletsController.WalletSend), new { walletId });
|
||||
public static string? WalletTransactions(this IUrlHelper helper, string walletId) => WalletTransactions(helper, WalletId.Parse(walletId));
|
||||
public static string? WalletTransactions(this IUrlHelper helper, WalletId walletId)
|
||||
=> helper.Action(nameof(UIWalletsController.WalletTransactions), new { walletId });
|
||||
public static Uri ActionAbsolute(this IUrlHelper helper, HttpRequest request, string? action, string? controller, object? values)
|
||||
=> request.GetAbsoluteUriNoPathBase(new Uri(helper.Action(action, controller, values) ?? "", UriKind.Relative));
|
||||
public static Uri ActionAbsolute(this IUrlHelper helper, HttpRequest request, string? action, string? controller)
|
||||
|
||||
Reference in New Issue
Block a user