using adas_core.Application.Repositories.Interfaces;
using adas_core.Application.Services.Interfaces;
using adas_core.Domain.Models.MongoModels;
namespace adas_core.Application.Services;
///
/// Provides services for managing archived patient data, implementing the interface.
///
///
/// This class uses an to perform operations on archived patient records, following the repository pattern.
///
public class ArchivedPatientService(IPatientArchiveRepository archivedPatientRepository) : IArchivedPatientService
{
///
/// Retrieves all archived patients by delegating to the archived patient repository.
///
/// A task representing the asynchronous operation, containing a list of all archived entities.
public async Task> FindAllPatients()
{
return await archivedPatientRepository.FindAll();
}
}