Manage Appointments DONE!
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
}
|
||||
@@ -13,4 +13,6 @@ public interface IChatMongoDbService
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
|
||||
Task DeleteByIdAsync<T>(string id);
|
||||
}
|
||||
@@ -14,4 +14,6 @@ public interface IMedicalHistoryMongoDbService
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
|
||||
Task DeleteByIdAsync<T>(string id);
|
||||
}
|
||||
Reference in New Issue
Block a user