You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
553 B
14 lines
553 B
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Ardalis.Result;
|
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
|
|
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
|
|
|
public interface IBasketService
|
|
{
|
|
Task TransferBasketAsync(string anonymousId, string userName);
|
|
Task<Basket> AddItemToBasket(string username, int catalogItemId, decimal price, int quantity = 1);
|
|
Task<Result<Basket>> SetQuantities(int basketId, Dictionary<string, int> quantities);
|
|
Task DeleteBasketAsync(int basketId);
|
|
}
|
|
|