Created
December 17, 2017 18:39
SF_10.1, SF_10.2, SF_11.0, SF_11.1, SF_11.2, SF_12.0, SF_12.1, SF_12.2, SF_13.0, SF_13.1, SF_13.2, SF_13.3, SF_14.0, SF_14.1, SF_14.2, SF_14.3 - https://docs.sitefinity.com/for-developers-query-events
This file contains 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 characters
using System.Collections.Generic; | |
using System.Linq; | |
using Telerik.Sitefinity.Events.Model; | |
using Telerik.Sitefinity.Modules.Events; | |
namespace SitefinityWebApp | |
{ | |
public class QueryAllEventsNativeAPI | |
{ | |
private List<Event> GetAllEventsNativeAPI() | |
{ | |
EventsManager eventsManager = EventsManager.GetManager(); | |
return eventsManager.GetEvents().Where(ev => ev.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live).ToList(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment