public async Task <DataWithCount <ICollection <Trigger> > > GetPaginatedListAsync(TriggerFilter filter) { VerifyManagementPermission(); filter.SiteId = GetCurrentSiteId(); return(new DataWithCount <ICollection <Trigger> > { Data = await _triggerRepository.PageAsync(filter), Count = await _triggerRepository.CountAsync(filter) }); }