20 lines
636 B
C#
Raw Normal View History

2016-11-02 20:41:12 +01:00
using Microsoft.eShopOnContainers.WebMVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Microsoft.eShopOnContainers.WebMVC.Services
{
public interface IBasketService
{
Basket GetBasket(ApplicationUser user);
int ItemsInCart { get; }
void AddItemToBasket(ApplicationUser user, BasketItem product);
2016-11-02 20:41:12 +01:00
Basket UpdateBasket(Basket basket);
Basket SetQuantities(ApplicationUser user, Dictionary<string, int> quantities);
Order MapBasketToOrder(Basket basket);
void CleanBasket(ApplicationUser user);
2016-11-02 20:41:12 +01:00
}
}