Files
FACULTATE-HEALTHCARE_MANAGER/backend/Application/Services/Database/MongoDB/IMedicalHistoryMongoDbService.cs
T
2024-04-08 02:31:05 +03:00

17 lines
744 B
C#

using Application.Endpoints.MedicalHistories;
using MongoDB.Driver;
namespace Application.Services.Database.MongoDB;
public interface IMedicalHistoryMongoDbService
{
IMongoCollection<MedicalHistoryAuthorisationModel> GetCollection<MedicalHistoryAuthorisationModel>();
Task<List<MedicalHistoryAuthorisationModel>> FindAsync<MedicalHistoryAuthorisationModel>(List<(string FieldName, string Value)> criteria);
Task AddAsync<MedicalHistoryAuthorisationModel>(MedicalHistoryAuthorisationModel document);
Task ModifyAsync<MedicalHistoryAuthorisationModel>(string keyField, string keyValue, MedicalHistoryAuthorisationModel document);
Task DeleteAsync<MedicalHistoryAuthorisationModel>(string keyField, string keyValue);
}