Files
SIG-CM/src/SIGCM.Domain/Interfaces/ICategoryRepository.cs

13 lines
378 B
C#
Raw Normal View History

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