@Override public List<IPrayerRequest> getRequestsByEmail(String email) { List<IPrayerRequest> requests = null; IPrayerRequestor requestor = repo.getRequestorByEmail(email); if (null != requestor) { requests = repo.getPrayerRequestsByRequestorId(requestor.getRequestorId()); } return requests; }
@Override public List<IPrayerRequest> getRequestsByRequestor(IPrayerRequestor requestor) { return repo.getPrayerRequestsByRequestorId(requestor.getRequestorId()); }