Fase 1: Inicialización del Backend .NET 10, Configuración de Dapper, Autenticación JWT y Entidades Base
This commit is contained in:
12
src/SIGCM.Domain/Interfaces/ICategoryRepository.cs
Normal file
12
src/SIGCM.Domain/Interfaces/ICategoryRepository.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user