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);
|
|
}
|
|
} |