/// <param name="filter">An optional expression used to filter the results,</param>
 /// <param name="orderBy">An optional function used to order the results.</param>
 /// <param name="includeProperties">An optional comma delimited list of related entities to include in the results.</param>
 public ApiControllerBase(IRepositoryExtended <TEntity, TKey> repository,
                          Expression <Func <TEntity, bool> > filter = null,
                          Func <IQueryable <TEntity>, IOrderedQueryable <TEntity> > orderBy = null,
                          string includeProperties = "")
 {
     _repository        = repository;
     _filter            = filter;
     _orderBy           = orderBy;
     _includeProperties = includeProperties;
 }
 public CrudServiceExtended(IRepositoryExtended <TEntity> repository, Expression <Func <TEntity, object> > idNameFactory = null)
     : base(repository, idNameFactory)
 {
 }