34 lines
858 B
C#
34 lines
858 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Web;
|
|||
|
|
|||
|
namespace EHEC_Server
|
|||
|
{
|
|||
|
|
|||
|
public class ClusterPatient
|
|||
|
{
|
|||
|
public List<Patient> Patients;
|
|||
|
public List<ClusterPatient> ClusterPatients;
|
|||
|
public int Id;
|
|||
|
public string Name;
|
|||
|
|
|||
|
public List<ClusterPatient> 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;
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|