Skip to content

Commit 9002b79

Browse files
committed
GH-125 :: implement review suggestions - sync the IContentItemRetriever in main and finished
1 parent 9dab1f7 commit 9002b79

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/TrainingGuides.Web/Features/Shared/Services/IContentItemRetrieverService.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,26 @@ Task<IEnumerable<IContentItemFieldsSource>> RetrieveContentItemsBySchemaAndTags(
138138
where T : IWebPageFieldsSource, new();
139139

140140
/// <summary>
141-
/// Retrieves the IWebPageFieldsSource of a web page item by Id using ContentRetriever API
141+
/// Retrieves a web page item by Id using the Content item query
142142
/// </summary>
143143
/// <param name="webPageItemId">The Id of the web page item</param>
144144
/// <param name="includeSecuredItems">If true, secured items will be included in the results.</param>
145145
/// <param name="languageName">The language to query. If null, the language will be inferred from the URL of the current request.</param>
146146
/// <returns><see cref="IWebPageFieldsSource"/> object containing generic <see cref="WebPageFields"/> for the item</returns>
147-
Task<IWebPageFieldsSource?> RetrieveWebPageById(int webPageItemId, bool includeSecuredItems = true, string? languageName = null);
147+
Task<IWebPageFieldsSource?> RetrieveWebPageById(
148+
int webPageItemId,
149+
bool includeSecuredItems = true,
150+
string? languageName = null);
148151

149152
/// <summary>
150-
/// Retrieves the IWebPageFieldsSource of a web page item by Guid using ContentRetriever API
153+
/// Retrieves a web page item by Guid using the Content item query
151154
/// </summary>
152155
/// <param name="pageContentItemGuid">The Guid of the web page item</param>
153156
/// <param name="includeSecuredItems">If true, secured items will be included in the results.</param>
154157
/// <param name="languageName">The language to query. If null, the language will be inferred from the URL of the current request.</param>
155158
/// <returns><see cref="IWebPageFieldsSource"/> object containing generic <see cref="WebPageFields"/> for the item</returns>
156-
Task<IWebPageFieldsSource?> RetrieveWebPageByContentItemGuid(Guid pageContentItemGuid, bool includeSecuredItems = true, string? languageName = null);
159+
Task<IWebPageFieldsSource?> RetrieveWebPageByContentItemGuid(
160+
Guid pageContentItemGuid,
161+
bool includeSecuredItems = true,
162+
string? languageName = null);
157163
}

0 commit comments

Comments
 (0)