phronCare/Models/Interfaces/IPhLSMProductDivisionRepository.cs

18 lines
671 B
C#
Raw Normal View History

2025-06-27 13:52:22 -03:00
using Domain.Entities;
using Domain.Generics;
namespace Models.Interfaces
{
public interface IPhLSMProductDivisionRepository
{
2025-06-30 16:15:08 -03:00
Task<ELSProductDivision> CreateAsync(ELSProductDivision entity);
2025-06-27 13:52:22 -03:00
Task<bool> DeleteAsync(int id);
2025-07-14 16:16:05 -03:00
Task<bool> ExistsByCodeAsync(string code);
2025-06-30 16:15:08 -03:00
Task<PagedResult<ELSProductDivision>> GetAllAsync(int page = 1, int pageSize = 50);
2025-07-14 16:16:05 -03:00
Task<List<string>> GetAllCodesAsync();
2025-06-30 16:15:08 -03:00
Task<ELSProductDivision?> GetByIdAsync(int id);
Task<PagedResult<ELSProductDivision>> SearchAsync(string? term, int page = 1, int pageSize = 50);
Task<bool> UpdateAsync(ELSProductDivision entity);
2025-06-27 13:52:22 -03:00
}
}