16 lines
495 B
C#
16 lines
495 B
C#
using ShopOnline.Api.Entities;
|
|
using ShopOnline.Models.Dtos;
|
|
|
|
namespace ShopOnline.Api.Repositories.Contracts
|
|
{
|
|
public interface IShoppingCartRepository
|
|
{
|
|
Task<CartItem>
|
|
AddItem(CartItemToAddDto cartItemToAddDto);
|
|
Task<CartItem> UpdateQuantity(int id, CartItemQuantityUpdateDto cartItemQuantityUpdateDto);
|
|
Task<CartItem> DeleteItem(int id);
|
|
Task<CartItem> GetItem(int id);
|
|
Task<IEnumerable<CartItem>> GetItems(int userId);
|
|
}
|
|
}
|