api v2.1
This commit is contained in:
@@ -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