phronCare/Core/Interfaces/ICustomerDom.cs
Leandro Hernan Rojas 650650b9a6
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m7s
Add Pagination on GetAll Customer in API
2025-04-06 01:35:31 -03:00

22 lines
646 B
C#

using Domain.Entities;
using Domain.Generics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Interfaces
{
public interface ICustomerDom
{
Task<ECustomer> AddAsync(ECustomer entity);
Task<bool> DeleteAsync(int id);
Task<PagedResult<ECustomer>> GetAllAsync(int page = 1, int pageSize = 50);
Task<ECustomer?> GetByIdAsync(int id);
Task<PagedResult<ECustomer>> SearchAsync(string? name, string? email, string? document, int page = 1, int pageSize = 50);
Task<bool> UpdateAsync(ECustomer entity);
}
}