private MongoCursor <IncomeMDO> GetIncomeMongoCursor(MongoDB.Driver.IMongoQuery incomeMongoQuery, int currentPage) { int rowCount = (currentPage * NumberOfRowsPerPage); int skipPageCount = rowCount != 0 ? (rowCount - NumberOfRowsPerPage) : 0; MongoCursor <IncomeMDO> incomeMongoCursor = new MongoDBManager().Find <IncomeMDO>("Incomes", incomeMongoQuery); incomeMongoCursor.Skip = skipPageCount; //------> Setting the skip count incomeMongoCursor.Limit = NumberOfRowsPerPage; //-----> Setting the take count (Limit) incomeMongoCursor.SetSortOrder(SortBy.Descending("IncomeDate", "CreatedDate")); //Setting the sort order before executing return(incomeMongoCursor); }