api v2.1
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace Application.Endpoints.MedicalHistories;
|
||||
|
||||
public class MedicalHistoryAuthorisationModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public List<Guid> Authorisation { get; set; } = new List<Guid>();
|
||||
}
|
||||
@@ -84,6 +84,15 @@ public class MedicalHistoryHandler
|
||||
|
||||
//TODO add to MongoDB
|
||||
|
||||
var medicalHistoryId = medicalHistory.Id;
|
||||
var newMedicalHistory = new MedicalHistoryAuthorisationModel
|
||||
{
|
||||
Id = medicalHistoryId,
|
||||
Authorisation = new List<Guid>()
|
||||
};
|
||||
|
||||
await _mongoDbService.AddAsync("MedicalHistory", newMedicalHistory);
|
||||
|
||||
return new BaseResponse
|
||||
{
|
||||
StatusCode = HttpStatusCodes.Created,
|
||||
|
||||
Reference in New Issue
Block a user