public async Task UloadFile(MedicalExaminationView medicalExamination) { if (medicalExamination.BloodChemistryAnalyses != null) { foreach (var a in medicalExamination.BloodChemistryAnalyses) { if (a.File != null) { a.Info = await _imageHandler.UploadImagePath(a.File); } } } if (medicalExamination.Electrocardiograms != null) { foreach (var a in medicalExamination.Electrocardiograms) { if (a.File != null) { a.Info = await _imageHandler.UploadImagePath(a.File); } } } if (medicalExamination.GeneralBloodAnalyses != null) { foreach (var a in medicalExamination.GeneralBloodAnalyses) { if (a.File != null) { a.Info = await _imageHandler.UploadImagePath(a.File); } } } if (medicalExamination.GeneralUrineAnalyses != null) { foreach (var a in medicalExamination.GeneralUrineAnalyses) { if (a.File != null) { a.Info = await _imageHandler.UploadImagePath(a.File); } } } if (medicalExamination.HeartUltrasounds != null) { foreach (var a in medicalExamination.HeartUltrasounds) { if (a.File != null) { a.Info = await _imageHandler.UploadImagePath(a.File); } } } }