13 lines
378 B
C#
13 lines
378 B
C#
|
|
namespace SIGCM.Domain.Interfaces;
|
||
|
|
using SIGCM.Domain.Entities;
|
||
|
|
|
||
|
|
public interface ICategoryRepository
|
||
|
|
{
|
||
|
|
Task<IEnumerable<Category>> GetAllAsync();
|
||
|
|
Task<Category?> GetByIdAsync(int id);
|
||
|
|
Task<int> AddAsync(Category category);
|
||
|
|
Task UpdateAsync(Category category);
|
||
|
|
Task DeleteAsync(int id);
|
||
|
|
Task<IEnumerable<Category>> GetSubCategoriesAsync(int parentId);
|
||
|
|
}
|