public IEnumerable <Event> GetByTrigger(string id)
 {
     return(_eventsRepository.GetAllByTriggerdBy(id));
 }