Example #1
0
        public void WriteLastPatient(string name, string date)
        {
            LastPatientJson lj = new LastPatientJson
            {
                LastPatient = new[]
                {
                    name,
                    date
                }
            };

            Serialize(lj, _root + "\\lastpatient.json");
        }
Example #2
0
        public string[] LoadLastPatient()
        {
            LastPatientJson lj = JsonConvert.DeserializeObject <LastPatientJson>(ReadData(_root + "\\lastpatient.json"));

            return(lj.LastPatient);
        }