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)); }
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)); }