using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EHEC_Server { public class ClusterPatient { private int Id { get; set; } private string Name { get; set; } private string Nodetype { get; set; } public ClusterPatient() { } public List GetClusterPatients() { Patient patient = new Patient(); List patients = new List(); patients = patient.GetAllPatients(); List ClusterPatients = new List(); foreach (Patient element in patients) { ClusterPatient clusterPatient = new ClusterPatient { Id = element.PatientId, Nodetype = "patient", Name = element.FirstName + " " + element.LastName }; ClusterPatients.Add(clusterPatient); } return ClusterPatients; } } }