public List <Patient> GetAllPatients(string role, int id) { try { patientDataLayer = new PatientDataLayer(); return(patientDataLayer.GetAllPatients(role, id)); } catch (Exception e) { ExceptionHandler.PrintException(e, new StackTrace(true)); throw e; } }