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

            try
            {
                retval = _personRepo.GetPersonById(id);
            }
            catch (Exception e)
            {
                ExceptionHandlers.LogException(e, Constants.ErrorLogFolderPath, true);
            }
            return(retval);
        }
示例#2
0
        public IEnumerable <Person> GetAllPersons()
        {
            IEnumerable <Person> retval = null;

            try
            {
                retval = _personRepo.GetPersons();
            }
            catch (Exception e)
            {
                ExceptionHandlers.LogException(e, Constants.ErrorLogFolderPath, true);
            }
            return(retval);
        }
示例#3
0
        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);
        }