2025-04-28 14:38:00 -03:00
|
|
|
|
using Domain.Entities;
|
|
|
|
|
|
using Domain.Generics;
|
|
|
|
|
|
|
2025-05-13 12:08:38 -03:00
|
|
|
|
namespace Core.Interfaces
|
2025-04-28 14:38:00 -03:00
|
|
|
|
{
|
|
|
|
|
|
public interface IPeopleDom
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<PagedResult<EPerson>> GetAllAsync(int page = 1, int pageSize = 50);
|
|
|
|
|
|
Task<PagedResult<EPerson>> SearchAsync(string? name, string? email, int page = 1, int pageSize = 50);
|
|
|
|
|
|
Task<EPerson?> GetByIdAsync(int id);
|
2025-05-13 12:08:38 -03:00
|
|
|
|
Task<EPerson> AddAsync(EPerson person);
|
2025-04-28 14:38:00 -03:00
|
|
|
|
Task<bool> UpdateAsync(EPerson person);
|
|
|
|
|
|
Task<bool> DeleteAsync(int id);
|
|
|
|
|
|
Task<byte[]> ExportFilteredCustomersToExcelAsync(PeopleSearchParams searchParams);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|