@foreach (var item in FamilyHistories) { } + افزودن
@foreach (var item in DrugHistories) {

@item

}
+
@foreach (var item in HHMedicines) {

@item

}
+
@code { private string _familyHistoryQuestionTitle = string.Empty; private MedicalHistoryQuestionType _familyHistoryQuestionType; public List FamilyHistories { get; set; } = new(); private void RemoveFamilyHistory(MedicalHistoryQuestion question) { FamilyHistories.Remove(question); } private void AddFamilyHistory() { FamilyHistories.Add(new MedicalHistoryQuestion { Title = _familyHistoryQuestionTitle, Type = _familyHistoryQuestionType }); } private string _drugHistoryName = string.Empty; public List DrugHistories { get; set; } = new(); private void RemoveDrugHistory(string medicine) { DrugHistories.Remove(medicine); } private void AddDrugHistory() { DrugHistories.Add(_drugHistoryName); _drugHistoryName = string.Empty; } private string _hhName = string.Empty; public List HHMedicines { get; set; } = new(); private void RemoveHHMedicine(string medicine) { HHMedicines.Remove(medicine); } private void AddHHMedicine() { HHMedicines.Add(_hhName); _hhName = string.Empty; } }