using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EHEC_Server { public class ClusterPatient { public List Patients { get; set; } public List ClusterPatients { get; set; } public int Id { get; set; } public string Name { get; set; } public List GetClusterPatients() { Patients = Global.GlobalInstance.DbAccess.Patients.ToList(); foreach (Patient element in Patients) { ClusterPatient clusterPatient = new ClusterPatient { Id = element.PatientId, Name = element.FirstName + " " + element.LastName }; this.ClusterPatients.Add(clusterPatient); } return ClusterPatients; } } }