17 lines
744 B
C#
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);
|
|
} |