public async Task <PaginatedResult <TDto> > GetPagedData <TEntity, TDto>(PagedRequest pagedRequest) where TEntity : Entity where TDto : class { return(await _dbContext.Set <TEntity>().CreatePaginatedResultAsync <TEntity, TDto>(pagedRequest, _mapper)); }
public Repository(OnlineCoursesDbContext dbContext, IMapper mapper) { _dbContext = dbContext; _dbSet = _dbContext.Set <T>(); _mapper = mapper; }