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