18 lines
540 B
C#
18 lines
540 B
C#
// src/Webshop.Domain/Interfaces/IcategorieRepository.cs
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Domain.Entities;
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface ICategorieRepository
|
|
{
|
|
Task<IEnumerable<Categorie>> GetAllAsync();
|
|
Task<Categorie?> GetByIdAsync(Guid id);
|
|
Task<Categorie?> GetBySlugAsync(string slug);
|
|
Task AddAsync(Categorie categorie);
|
|
Task UpdateAsync(Categorie categorie);
|
|
Task DeleteAsync(Guid id);
|
|
}
|
|
} |