public UnifyApiResult FindPageList(string name, int currentPageIndex, int pageSize)
        {
            ContactGroupDAL       dal    = new ContactGroupDAL();
            IEnumerable <dynamic> result = dal.FindPageList(name, currentPageIndex, pageSize, out var total);
            var enumerable = result as dynamic[] ?? result.ToArray();

            return(UnifyApiResult.PageResult(enumerable, total));
        }
Exemplo n.º 2
0
        public UnifyApiResult FindPageList(string statusType, string rtype, int currentPageIndex, int pageSize)
        {
            RegisterDAL           dal    = new RegisterDAL();
            IEnumerable <dynamic> result = dal.FindPageList(statusType, rtype, currentPageIndex, pageSize, out var total);
            var enumerable = result as dynamic[] ?? result.ToArray();

            return(UnifyApiResult.PageResult(enumerable, total));
        }