ShopOnlineSolution/ShopOnline.Web/Services/Contracts/IShoppingCartService.cs

16 lines
516 B
C#

using ShopOnline.Models.Dtos;
namespace ShopOnline.Web.Services.Contracts
{
public interface IShoppingCartService
{
Task<List<CartItemDto>> GetItems(int userId);
Task<CartItemDto> AddItem(CartItemToAddDto cartItemToAddDto);
Task<CartItemDto> DeleteItem(int id);
Task<CartItemDto> UpdateQuantity(CartItemQuantityUpdateDto cartItemQuantityUpdateDto);
event Action<int> OnShoppingCartChanged;
void RaiseEventOnShoppingCartChanged(int totalQuantity);
}
}