public async Task <ActionResult <PageModel <SpeakerProfileModel> > > GetAll([FromRoute] Guid eventId, CancellationToken cancellationToken)
        {
            var query = new GetSpeakerProfilesByEventId(eventId);

            var result = await Mediator.Execute <GetSpeakerProfilesByEventId, PageModel <SpeakerProfileModel> >(query, cancellationToken);

            return(Ok(result));
        }
 public Task <PageModel <SpeakerProfileModel> > Handle(GetSpeakerProfilesByEventId query, CancellationToken cancellationToken)
 {
     return(Repository.GetAllForEvent(query, cancellationToken));
 }