Webiant Logo Webiant Logo
  1. No results found.

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

PriceRangeFilterModel.cs

using Nop.Web.Framework.Models;

namespace Nop.Web.Models.Catalog;

/// <summary>
/// Represents a products price range filter model
/// </summary>
public partial record PriceRangeFilterModel : BaseNopModel
{
    #region Properties

    /// <summary>
    /// Gets or sets a value indicating whether filtering is enabled
    /// </summary>
    public bool Enabled { get; set; }

    /// <summary>
    /// Gets or sets the selected price range
    /// </summary>
    public PriceRangeModel SelectedPriceRange { get; set; }

    /// <summary>
    /// Gets or sets the available price range
    /// </summary>
    public PriceRangeModel AvailablePriceRange { get; set; }

    #endregion

    #region Ctor

    /// <summary>
    /// Ctor
    /// </summary>
    public PriceRangeFilterModel()
    {
        SelectedPriceRange = new PriceRangeModel();
        AvailablePriceRange = new PriceRangeModel();
    }

    #endregion
}