phronCare/Models/Interfaces/IPhSPatientRepository.cs
Leandro Hernan Rojas 8623488221
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 5m24s
Update ADD Patients y Institutions Models in API
2025-04-20 19:58:17 -03:00

21 lines
637 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 Models.Interfaces
{
public interface IPhSPatientRepository
{
Task<EPatient> CreateAsync(EPatient entity);
Task<bool> DeleteAsync(int id);
Task<PagedResult<EPatient>> GetAllAsync(int page = 1, int pageSize = 50);
Task<EPatient?> GetByIdAsync(int id);
Task<PagedResult<EPatient>> SearchAsync(string? name, string? document, int page = 1, int pageSize = 50);
Task<bool> UpdateAsync(EPatient entity);
}
}