Newer
Older
eShopOnWeb-VerticalFeatureSlices / src / ApplicationCore / Interfaces / IBasketService.cs
@Derek Comartin Derek Comartin on 27 Jul 2021 467 bytes Init
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
    public interface IBasketService
    {
        Task TransferBasketAsync(string anonymousId, string userName);
        Task AddItemToBasket(int basketId, int catalogItemId, decimal price, int quantity = 1);
        Task SetQuantities(int basketId, Dictionary<string, int> quantities);
        Task DeleteBasketAsync(int basketId);
    }
}