/// <summary> /// Get All Events /// </summary> /// <param name="pageSize">Number of results to get</param> /// <param name="pageIndex">Page Index</param> /// <returns>List of EventDefinitions</returns> public IList <EventDefinition> GetAllEventDefinitions(int pageSize, int pageIndex) { return(_eventDefinitionRepository.GetAllWithUserInfo(this.GetRegisteredUserId(), pageSize, pageIndex)); }