public Person GetPersonById(int id) { Person retval = null; try { retval = _personRepo.GetPersonById(id); } catch (Exception e) { ExceptionHandlers.LogException(e, Constants.ErrorLogFolderPath, true); } return(retval); }
public IEnumerable <Person> GetAllPersons() { IEnumerable <Person> retval = null; try { retval = _personRepo.GetPersons(); } catch (Exception e) { ExceptionHandlers.LogException(e, Constants.ErrorLogFolderPath, true); } return(retval); }
public List <Address> GetPersonAddresses(int personId) { List <Address> retval = null; try { retval = _personRepo.GetAddressesByPersonId(personId); } catch (Exception e) { ExceptionHandlers.LogException(e, Constants.ErrorLogFolderPath, true); } return(retval); }