public List <Appointment> GetPatientAppointments(int patientId) { try { patientDataLayer = new PatientDataLayer(); return(patientDataLayer.GetPatientAppointments(patientId)); } catch (Exception e) { ExceptionHandler.PrintException(e, new StackTrace(true)); throw e; } }