oop_II-6/EHEC_Server/EHEC_Server/cluster_dependencies/ClusterConverter.cs

30 lines
745 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EHEC_Server;
namespace EHEC_Server
{
public class ClusterConverter
{
public void WriteJson()
{
ClusterPatient clusterp = new ClusterPatient();
List<ClusterPatient> clusterPatientList = new List<ClusterPatient>();
clusterPatientList = clusterp.GetClusterPatients();
var json = JsonConverter.Serialize(clusterPatientList);
System.IO.File.WriteAllText(@"C:\Users\novski\Desktop\Company.json", json);
}
private List<ClusterPatient> GetCluster()
{
return new List<ClusterPatient>();
}
}
}