Webiant Logo Webiant Logo
  1. No results found.

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

ICompareProductsService.cs

using Nop.Core.Domain.Catalog;

namespace Nop.Services.Catalog;

/// 
/// Compare products service interface
/// 
public partial interface ICompareProductsService
{
    /// 
    /// Clears a "compare products" list
    /// 
    void ClearCompareProducts();

    /// 
    /// Gets a "compare products" list
    /// 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the "Compare products" list
    /// 
    Task> GetComparedProductsAsync();

    /// 
    /// Removes a product from a "compare products" list
    /// 
    /// Product identifier
    /// A task that represents the asynchronous operation
    Task RemoveProductFromCompareListAsync(int productId);

    /// 
    /// Adds a product to a "compare products" list
    /// 
    /// Product identifier
    /// A task that represents the asynchronous operation
    Task AddProductToCompareListAsync(int productId);
}