public Person GetPersonById(int id) { Person retval = null; try { retval = _personRepo.GetPersonById(id); } catch (Exception ex) { ExceptionFacade.LogException(ex, Constants.LogDir, true); } return(retval); }
public List <Address> GetAddressesByPersonId(int personId) { List <Address> retval = null; try { retval = _personRepo.GetAddressesByPersonId(personId); } catch (Exception ex) { ExceptionFacade.LogException(ex, Constants.LogDir, true); } return(retval); }
public IEnumerable <Person> GetAllPersons() { IEnumerable <Person> retval = null; try { retval = _personRepo.GetPersonsWithAddresses(); } catch (Exception ex) { ExceptionFacade.LogException(ex, Constants.LogDir, true); } return(retval); }