/// <summary>
 /// Gets the document with the maximum value of a specified property in a MongoDB collections that is satisfying the filter.
 /// </summary>
 /// <typeparam name="TDocument">The document type.</typeparam>
 /// <param name="filter">A LINQ expression filter.</param>
 /// <param name="minValueSelector">A property selector to order by ascending.</param>
 /// <param name="partitionKey">An optional partitionKey.</param>
 public TDocument GetByMin <TDocument>(Expression <Func <TDocument, bool> > filter, Expression <Func <TDocument, object> > minValueSelector, string partitionKey = null)
     where TDocument : IDocument <TKey>
 {
     return(MongoDbReader.GetByMin <TDocument, TKey>(filter, minValueSelector, partitionKey));
 }