phronCare/Models/Interfaces/IPhSCustomerRepository.cs
Leandro Hernan Rojas d5722495ae
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m16s
Add Update API UI Customers CRUD
2025-04-14 17:50:25 -03:00

21 lines
595 B
C#

using Domain.Entities;
using Domain.Generics;
namespace Models.Interfaces
{
public interface IPhSCustomerRepository
{
Task<ECustomer> CreateAsync(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,
int pageSize);
Task<bool> UpdateAsync(ECustomer entity);
}
}