diff --git a/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/ImplementerReportLogic.cs b/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/ImplementerReportLogic.cs index 8f2c76c..f4745c1 100644 --- a/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/ImplementerReportLogic.cs +++ b/Polyclinic/PolyclinicBusinessLogic/BusinessLogics/ImplementerReportLogic.cs @@ -52,14 +52,13 @@ namespace PolyclinicBusinessLogic.BusinessLogics { diagnoseMedicaments.AddRange(medicaments.Where(x => x.SymptomId == symptom.Id)); } - diagnoseMedicaments.Distinct(); var diagnoseReportModel = new ReportMedicamentsByDiagnoseViewModel { DiagnoseId = diagnose.Id, DiagnoseName = diagnose.Name, DiagnoseComment = diagnose.Comment, DiagnoseDateStart = diagnose.DateStartDiagnose, DiagnoseDateStop = diagnose.DateStopDiagnose, - Medicaments = diagnoseMedicaments.Select(x => x.Name).ToList() + Medicaments = diagnoseMedicaments.Distinct().Select(x => x.Name).ToList() }; result.Add(diagnoseReportModel); }