phronCare/Models/Interfaces/IPhSCustomerRepository.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

27 lines
729 B
C#

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