2025-04-20 19:58:17 -03:00
|
|
|
|
using Domain.Entities;
|
|
|
|
|
|
using Domain.Generics;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Models.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IPhSInstitutionRepository
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<EInstitution> CreateAsync(EInstitution model);
|
|
|
|
|
|
Task<PagedResult<EInstitution>> GetAllAsync(int page = 1, int pageSize = 50);
|
|
|
|
|
|
Task<EInstitution?> GetByIdAsync(int id);
|
|
|
|
|
|
Task<PagedResult<EInstitution>> SearchAsync(
|
|
|
|
|
|
string? name,
|
2025-04-21 19:41:26 -03:00
|
|
|
|
string? type,
|
2025-04-20 19:58:17 -03:00
|
|
|
|
string? province,
|
|
|
|
|
|
int page = 1,
|
|
|
|
|
|
int pageSize = 50);
|
|
|
|
|
|
Task<bool> UpdateAsync(EInstitution model);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|