public void OnGet(int?id) { if (id != null) { PatientClient pc = new PatientClient(); Patient = pc.findID(id); } }