public async Task <IActionResult> Get()
        {
            IEnumerable <BlSessionModelResponse> sessions = await _sessionService.GetSessions();

            return(Ok(
                       sessions.Select(Mapper.Map <SessionModelResponse>)
                       ));
        }
        public async Task <IViewComponentResult> InvokeAsync(
            Speaker speaker)
        {
            var baseUrl =
                new Uri(Request.GetEncodedUrl()).GetLeftPart(UriPartial.Authority);
            var sessions = await _sessionsService.GetSessions(speaker.SpeakerId, baseUrl);

            speaker.Sessions = sessions;
            return(View(speaker));
        }