18 lines
573 B
C#
18 lines
573 B
C#
// src/Webshop.Domain/Interfaces/IDiscountRepository.cs
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Domain.Entities;
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface IDiscountRepository
|
|
{
|
|
Task<IEnumerable<Discount>> GetAllAsync();
|
|
Task<Discount?> GetByIdAsync(Guid id);
|
|
Task<Discount?> GetByCouponCodeAsync(string couponCode); // << NEUE METHODE HINZUFÜGEN
|
|
Task AddAsync(Discount discount);
|
|
Task UpdateAsync(Discount discount);
|
|
Task DeleteAsync(Guid id);
|
|
}
|
|
} |