/// <summary>
 /// Get Event Definition By Id
 /// </summary>
 /// <param name="id">eventDefinition Id</param>
 /// <returns></returns>
 public EventDefinition GetEventDefinitionById(int id)
 {
     return(_eventDefinitionRepository.GetByIdWithUserInfo(this.GetRegisteredUserId(), id));
 }