예제 #1
0
        public List <PersonReport> ListPerson(Criteria criteria)
        {
            List <PersonReport> listPerson = null;
            JObject             result     = null;
            PersonProvider      provider   = null;

            try
            {
                listPerson = new List <PersonReport>();
                result     = new JObject();
                provider   = new PersonProvider();
                result     = provider.ListPerson(criteria);
                if (result != null)
                {
                    listPerson = result["Person"].ToObject <List <PersonReport> >();
                }
            }
            catch (Exception ex)
            {
                throw;
            }

            return(listPerson);
        }