Created
September 6, 2016 06:55
-
-
Save fraabye/ef8c49324d281f196538407518e7d617 to your computer and use it in GitHub Desktop.
Revisions
-
fraabye created this gist
Sep 6, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ private static List<Record> GetFormRecords(Guid formGuid) { var records = new List<Record>(); using (var fs = new FormStorage()) { var form = fs.GetForm(formGuid); if (form == null) { return null; } using (RecordStorage storage = new RecordStorage()) { records =storage.GetAllRecords(form).GroupBy(member => member.MemberKey).Select(group => group.First()).ToList(); } } return records; } }