Exemple #1
0
 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));
 }
Exemple #2
0
 public Repository(OnlineCoursesDbContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _dbSet     = _dbContext.Set <T>();
     _mapper    = mapper;
 }