Files
ShopSolution-backend/Webshop.Domain/Interfaces/ICategoryRepository.cs
Tizian.Breuch 50ae33c258 categorys
2025-07-31 15:14:51 +02:00

18 lines
531 B
C#

// src/Webshop.Domain/Interfaces/ICategoryRepository.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities;
namespace Webshop.Domain.Interfaces
{
public interface ICategoryRepository
{
Task<IEnumerable<Category>> GetAllAsync();
Task<Category?> GetByIdAsync(Guid id);
Task<Category?> GetBySlugAsync(string slug);
Task AddAsync(Category category);
Task UpdateAsync(Category category);
Task DeleteAsync(Guid id);
}
}