17 lines
478 B
C#
17 lines
478 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 AddAsync(Discount discount);
|
|
Task UpdateAsync(Discount discount);
|
|
Task DeleteAsync(Guid id);
|
|
}
|
|
} |