18 lines
531 B
C#
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);
|
|
}
|
|
} |