using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace EHEC_Server { /// /// This clas converts the object from db model to the needs of Json /// conversion for Clusteranalysis. /// public class ClusterPatient { //public int Id { get; set; } //public string Name { get; set; } //public 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; //} } }