/// <summary>
        /// Phân trang
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public IEnumerable <MISAEntity> GetPaging(int pageIndex, int pageSize)
        {
            if (pageIndex < 0 || pageSize < 0)
            {
                var response = new
                {
                    devMsg   = Properties.Resources.Invalid_Paging_number,
                    MISACode = Properties.Resources.MISACode
                };
                throw new CustomerException(response.devMsg);
            }


            var result = _dataAccessBaseRepository.GetPaging(pageIndex, pageSize);

            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// Phân trang
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public IEnumerable <MISAEntity> GetPaging(int pageIndex, int pageSize)
        {
            var response = _dataAccessBaseRepository.GetPaging(pageIndex, pageSize);

            return(response);
        }