Ejemplo n.º 1
0
        public virtual async Task <IPage <TEntity> > GetPage(int pageIndex, int pageSize = 5, bool noCount = false, TQuery query = default(TQuery))
        {
            if (pageIndex == 2)
            {
                throw new ApiException("Page2");
            }

            return(await _detachedService.GetPage(pageIndex, pageSize, noCount, query));
        }
Ejemplo n.º 2
0
        public virtual async Task <IPage <TEntity> > GetPage(int pageIndex, int pageSize = 5, bool noCount = false, TQuery query = default(TQuery))
        {
            await Task.Delay(2000);

            return(await _detachedService.GetPage(pageIndex, pageSize, noCount, query));
        }