Timeline for Return Sitecore item as list of Model
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 11, 2020 at 16:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
S Aug 12, 2020 at 15:55 | history | suggested | Paulson Maclean | CC BY-SA 4.0 |
Improved formatting
|
Aug 12, 2020 at 15:13 | answer | added | Paulson Maclean | timeline score: 1 | |
Aug 12, 2020 at 15:01 | review | Suggested edits | |||
S Aug 12, 2020 at 15:55 | |||||
Aug 12, 2020 at 11:56 | comment | added | Karan | var response = results.Select(x => new PageContent { Title = !string.IsNullOrEmpty(x.Document.Title) ? x.Document.Title : string.Empty, Description = !string.IsNullOrEmpty(x.Document.Description) ? x.Document.Description : string.Empty, }).ToList(); | |
Aug 12, 2020 at 11:54 | comment | added | Karan | @GauravAgarwal yes created the model and filled the model but not able too add it in resuts. foreach(var res in response) { if (res != null) { this.Results.Add(res); } } | |
Aug 12, 2020 at 11:44 | comment | added | Gaurav Agarwal | Create a Model and initialize it and fill model property in foreach loop | |
Aug 12, 2020 at 11:41 | review | First posts | |||
Aug 12, 2020 at 16:29 | |||||
Aug 12, 2020 at 11:40 | history | asked | Karan | CC BY-SA 4.0 |