Mango.Nop.Plugins/Nop.Plugin.Misc.AuctionPlugin/Services/IBidService.cs

34 lines
922 B
C#

using Nop.Core;
using Nop.Plugin.Misc.AuctionPlugin.Domains;
namespace Nop.Plugin.Misc.AuctionPlugin.Services;
/// <summary>
/// Store pickup point service interface
/// </summary>
public interface IBidService
{
/// <summary>
/// Gets all bids
/// </summary>
/// <param name="customerId">The store identifier; pass 0 to load all records</param>
/// <param name="pageIndex">Page index</param>
/// <param name="pageSize">Page size</param>
/// <returns>
/// A task that represents the asynchronous operation
/// The task result contains the bids
/// </returns>
Task<IPagedList<BidEntity>> GetAllBidsAsync(int customerId = 0, int pageIndex = 0, int pageSize = int.MaxValue);
Task<BidEntity> GetBidByIdAsync(int bidId);
Task InsertBidAsync(BidEntity bidEntity);
Task UpdateBidAsync(BidEntity bid);
Task DeleteBidAsync(BidEntity pickupPoint);
}