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