diff --git a/10/umbraco-forms/developer/working-with-data.md b/10/umbraco-forms/developer/working-with-data.md index 2a8f1e5a7da..0647845168f 100644 --- a/10/umbraco-forms/developer/working-with-data.md +++ b/10/umbraco-forms/developer/working-with-data.md @@ -1,5 +1,4 @@ --- -meta.Title: Working with Umbraco Forms data description: Developer documentation on working with Forms record data. --- @@ -22,7 +21,7 @@ Returns all records with the state set to approved from all Forms on the Umbraco ### GetApprovedRecordsFromFormOnPage ```csharp -PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. @@ -30,7 +29,7 @@ Returns all records with the state set to approved from the Form with the id = ` ### GetApprovedRecordsFromForm ```csharp -PagedResult GetApprovedRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. @@ -46,7 +45,7 @@ Returns all records from all Forms on the Umbraco page with the id = `pageId` as ### GetRecordsFromFormOnPage ```csharp -PagedResult GetRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. @@ -54,7 +53,7 @@ Returns all records from the Form with the id = `formId` on the Umbraco page wit ### GetRecordsFromForm ```csharp -PagedResult GetRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` Returns all records from the Form with the ID = formId as a `PagedResult`. diff --git a/13/umbraco-forms/developer/working-with-data.md b/13/umbraco-forms/developer/working-with-data.md index 3dbcd3c156d..efc171cb19e 100644 --- a/13/umbraco-forms/developer/working-with-data.md +++ b/13/umbraco-forms/developer/working-with-data.md @@ -13,7 +13,7 @@ The methods can be found by injecting the `Umbraco.Forms.Core.Services.IRecordRe ### GetApprovedRecordsFromPage ```csharp -PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` Returns all records with the state set to approved from all Forms on the Umbraco page with the id = `pageId` . @@ -21,48 +21,48 @@ Returns all records with the state set to approved from all Forms on the Umbraco ### GetApprovedRecordsFromFormOnPage ```csharp -PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetApprovedRecordsFromForm ```csharp -PagedResult GetApprovedRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. ### GetRecordsFromPage ```csharp -PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` -Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromFormOnPage ```csharp -PagedResult GetRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromForm ```csharp -PagedResult GetRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the ID = formId as a `PagedResult`. +Returns all records from the Form with the ID = formId as a `PagedResult`. ## The returned objects -All of these methods will return an object of type `PagedResult` so you can iterate through the `IRecord` objects. +All of these methods will return an object of type `PagedResult` so you can iterate through the `Record` objects. -The properties available on a `IRecord` are: +The properties available on a `Record` are: ```csharp int Id diff --git a/14/umbraco-forms/developer/working-with-data.md b/14/umbraco-forms/developer/working-with-data.md index 822b76417b1..eb4ef07555a 100644 --- a/14/umbraco-forms/developer/working-with-data.md +++ b/14/umbraco-forms/developer/working-with-data.md @@ -13,7 +13,7 @@ The methods can be found by injecting the `Umbraco.Forms.Core.Services.IRecordRe ### GetApprovedRecordsFromPage ```csharp -PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` Returns all records with the state set to approved from all Forms on the Umbraco page with the id = `pageId` . @@ -21,48 +21,48 @@ Returns all records with the state set to approved from all Forms on the Umbraco ### GetApprovedRecordsFromFormOnPage ```csharp -PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetApprovedRecordsFromForm ```csharp -PagedResult GetApprovedRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. ### GetRecordsFromPage ```csharp -PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` -Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromFormOnPage ```csharp -PagedResult GetRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromForm ```csharp -PagedResult GetRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the ID = formId as a `PagedResult`. +Returns all records from the Form with the ID = formId as a `PagedResult`. ## The returned objects -All of these methods will return an object of type `PagedResult` so you can iterate through the `IRecord` objects. +All of these methods will return an object of type `PagedResult` so you can iterate through the `Record` objects. -The properties available on a `IRecord` are: +The properties available on a `Record` are: ```csharp int Id diff --git a/15/umbraco-forms/developer/working-with-data.md b/15/umbraco-forms/developer/working-with-data.md index 822b76417b1..eb4ef07555a 100644 --- a/15/umbraco-forms/developer/working-with-data.md +++ b/15/umbraco-forms/developer/working-with-data.md @@ -13,7 +13,7 @@ The methods can be found by injecting the `Umbraco.Forms.Core.Services.IRecordRe ### GetApprovedRecordsFromPage ```csharp -PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` Returns all records with the state set to approved from all Forms on the Umbraco page with the id = `pageId` . @@ -21,48 +21,48 @@ Returns all records with the state set to approved from all Forms on the Umbraco ### GetApprovedRecordsFromFormOnPage ```csharp -PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetApprovedRecordsFromForm ```csharp -PagedResult GetApprovedRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetApprovedRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. +Returns all records with the state set to approved from the Form with the ID = `formId` as a `PagedResult`. ### GetRecordsFromPage ```csharp -PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) +PagedResult GetRecordsFromPage(int pageId, int pageNumber, int pageSize) ``` -Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from all Forms on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromFormOnPage ```csharp -PagedResult GetRecordsFromFormOnPage(int pageId, Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromFormOnPage(int pageId, Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. +Returns all records from the Form with the id = `formId` on the Umbraco page with the id = `pageId` as a `PagedResult`. ### GetRecordsFromForm ```csharp -PagedResult GetRecordsFromForm(Guid.Parse("formId"), int pageNumber, int pageSize) +PagedResult GetRecordsFromForm(Guid formId, int pageNumber, int pageSize) ``` -Returns all records from the Form with the ID = formId as a `PagedResult`. +Returns all records from the Form with the ID = formId as a `PagedResult`. ## The returned objects -All of these methods will return an object of type `PagedResult` so you can iterate through the `IRecord` objects. +All of these methods will return an object of type `PagedResult` so you can iterate through the `Record` objects. -The properties available on a `IRecord` are: +The properties available on a `Record` are: ```csharp int Id