Webiant Logo Webiant Logo
  1. No results found.

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

ICustomWishlistService.cs

using Nop.Core.Domain.Orders;

namespace Nop.Services.Orders;

/// 
/// Custom wishlist service interface
/// 
public partial interface ICustomWishlistService
{
    /// 
    /// Retrieves all custom wishlists associated with the specified customer.
    /// 
    /// The unique identifier of the customer whose custom wishlists are to be retrieved.
    /// A task that represents the asynchronous operation. The task result contains a list of   objects associated with the specified customer. If multiple wishlists  are not allowed,
    /// an empty list is returned.
    Task> GetAllCustomWishlistsAsync(int customerId);

    /// 
    /// Adds a custom wishlist item to the repository.
    /// 
    /// The custom wishlist item to add. Cannot be .
    Task AddCustomWishlistAsync(CustomWishlist item);

    /// 
    /// Removes a custom wishlist item with the specified identifier.
    /// 
    /// The unique identifier of the custom wishlist item to remove. Must be a valid identifier of an existing item.
    Task RemoveCustomWishlistAsync(int itemId);

    /// 
    /// Retrieves a custom wishlist by its unique identifier.
    /// 
    /// The unique identifier of the custom wishlist to retrieve. Must be a positive integer.
    /// A  object representing the custom wishlist with the specified identifier. Returns
    /// null if no wishlist is found with the given identifier.
    Task GetCustomWishlistByIdAsync(int itemId);
}