示例#1
0
        public Person GetPersonById(int id)
        {
            Person retval = null;

            try
            {
                retval = _personRepo.GetPersonById(id);
            }
            catch (Exception ex)
            {
                ExceptionFacade.LogException(ex, Constants.LogDir, true);
            }

            return(retval);
        }
示例#2
0
        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);
        }
示例#3
0
        public IEnumerable <Person> GetAllPersons()
        {
            IEnumerable <Person> retval = null;

            try
            {
                retval = _personRepo.GetPersonsWithAddresses();
            }
            catch (Exception ex)
            {
                ExceptionFacade.LogException(ex, Constants.LogDir, true);
            }

            return(retval);
        }