16 lines
524 B
C#
16 lines
524 B
C#
// src/Webshop.Domain/Interfaces/ISupplierRepository.cs
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Domain.Entities; // Supplier Entity
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface ISupplierRepository
|
|
{
|
|
Task<IEnumerable<Supplier>> GetAllSuppliersAsync();
|
|
Task<Supplier?> GetSupplierByIdAsync(Guid id);
|
|
Task AddSupplierAsync(Supplier supplier);
|
|
Task UpdateSupplierAsync(Supplier supplier);
|
|
Task DeleteSupplierAsync(Guid id);
|
|
}
|
|
} |