public async Task <StudentMedicalRecord> GetStudentMedicalRecord(
            int ccode)
        {
            StudentMedicalRecord medicalRecord = null;

            try
            {
                var url  = $"{serviceAddress}/GetStudentMedicalRecord/{ccode}";
                var json = await this.GetAsString(url);

                medicalRecord = JsonConvert.DeserializeObject <StudentMedicalRecord>(json);
            }
            catch (Exception ex)
            {
                var oops = ex.Message;
            }

            return(medicalRecord);
        }
Beispiel #2
0
        async void GetMedicalRecord(int ccode)
        {
            this.MedicalRecord = await api.GetStudentMedicalRecord(ccode);

            ConvertAndSetMedicalVal();
        }