Webiant Logo Webiant Logo
  1. No results found.

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

IRecentlyViewedProductsService.cs

using Nop.Core.Domain.Catalog;

namespace Nop.Services.Catalog;

/// 
/// Recently viewed products service
/// 
public partial interface IRecentlyViewedProductsService
{
    /// 
    /// Gets a "recently viewed products" list
    /// 
    /// Number of products to load
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the "recently viewed products" list
    /// 
    Task> GetRecentlyViewedProductsAsync(int number);

    /// 
    /// Adds a product to a recently viewed products list
    /// 
    /// Product identifier
    /// A task that represents the asynchronous operation
    Task AddProductToRecentlyViewedListAsync(int productId);
}