/// <inheritdoc /> public IEnumerable <TDto> GetAll(Expression <Func <TSource, bool> > predicate = null, params Expression <Func <TSource, object> >[] includeProperties) { IQueryable <TSource> models = _repository.FindAll(predicate, includeProperties); var dto = models.MapIQueryableToListOf <TDto>(); return(dto); }
/// <inheritdoc /> public IEnumerable <TDto> GetAll(Expression <Func <TSource, bool> > predicate = null, Func <IQueryable <TSource>, IIncludableQueryable <TSource, object> > include = null, bool disableTracking = false) { IQueryable <TSource> models = _repository.FindAll(predicate, include, disableTracking); var dto = models.MapIQueryableToListOf <TDto>(); return(dto); }