Files
FACULTATE-HEALTHCARE_MANAGER/backend/Application/Services/Database/MongoDB/IAppointmentsHistoryMongoDbService.cs
T

23 lines
654 B
C#

using Application.Endpoints.Appointments;
using MongoDB.Driver;
namespace Application.Services.Database.MongoDB;
public interface IAppointmentsMongoDbService
{
IMongoCollection<T> GetCollection<T>();
Task<List<T>> FindAsync<T>(List<(string FieldName, string Value)> criteria);
Task AddAsync<T>(T document);
Task ModifyAsync<T>(string keyField, string keyValue, T document);
Task DeleteAsync<T>(string keyField, string keyValue);
Task DeleteByIdAsync<T>(string id);
public Task<bool> IsAppointmentUnique(AppointmentManagementDto dto);
public Task<bool> DoesAppointmentExists(AppointmentManagementDto dto);
}