Webiant Logo Webiant Logo
  1. No results found.

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

DataUrl.cs

using Microsoft.AspNetCore.Routing;

namespace Nop.Web.Framework.Models.DataTables;

/// 
/// Represents the data url
/// 
public partial class DataUrl
{
    #region Ctor

    /// 
    /// Initializes a new instance of the DataUrl class 
    /// 
    /// Action name
    /// Controller name
    /// Route values
    public DataUrl(string actionName, string controllerName, RouteValueDictionary routeValues)
    {
        ActionName = actionName;
        ControllerName = controllerName;
        RouteValues = routeValues;
    }

    /// 
    /// Initializes a new instance of the DataUrl class 
    /// 
    /// URL
    public DataUrl(string url)
    {
        Url = url;
    }

    /// 
    /// Initializes a new instance of the DataUrl class 
    /// 
    /// URL
    /// Name of the column whose value is to be used as identifier in URL
    public DataUrl(string url, string dataId)
    {
        Url = url;
        DataId = dataId;
    }

    /// 
    /// Initializes a new instance of the DataUrl class 
    /// 
    /// URL
    /// Parameter indicating that you need to delete all occurrences of the character "/" at the end of the line
    public DataUrl(string url, bool trimEnd)
    {
        Url = url;
        TrimEnd = trimEnd;
    }

    #endregion

    #region Properties

    /// 
    /// Gets or sets the name of the action.
    /// 
    public string ActionName { get; set; }

    /// 
    /// Gets or sets the name of the controller.
    /// 
    public string ControllerName { get; set; }

    /// 
    /// Gets or sets the URL.
    /// 
    public string Url { get; set; }

    /// 
    /// Gets or sets the route values.
    /// 
    public RouteValueDictionary RouteValues { get; set; }

    /// 
    /// Gets or sets data Id
    /// 
    public string DataId { get; set; }

    /// 
    /// Gets or sets parameter indicating that you need to delete all occurrences of the character "/" at the end of the line
    /// 
    public bool TrimEnd { get; set; }

    #endregion
}