Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

INopUrlHelper.cs

using Nop.Core;
using Nop.Core.Domain.Seo;

namespace Nop.Web.Framework.Mvc.Routing;

/// 
/// Represents a helper to build specific URLs within an application
/// 
public partial interface INopUrlHelper
{
    /// 
    /// Generate a generic URL for the specified entity type and route values
    /// 
    /// Entity type that supports slug
    /// An object that contains route values
    /// The protocol for the URL, such as "http" or "https"
    /// The host name for the URL
    /// The fragment for the URL
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the generated URL
    /// 
    Task RouteGenericUrlAsync(object values = null, string protocol = null, string host = null, string fragment = null)
        where TEntity : BaseEntity, ISlugSupported;

    /// 
    /// Generate a URL for topic by the specified system name
    /// 
    /// Topic system name
    /// The protocol for the URL, such as "http" or "https"
    /// The host name for the URL
    /// The fragment for the URL
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the generated URL
    /// 
    Task RouteTopicUrlAsync(string systemName, string protocol = null, string host = null, string fragment = null);
}