public GetEventByIdResponseDto GetEventById(GetEventByIdRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.GetEventByIdRequest>(request);

            coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data);

            var coreResponse = Dispatcher.GetEventById(coreRequest);

            var response = GetApiResponse <GetEventByIdResponseDto>(coreResponse);

            response.Data = AdapterDataConverter.ConvertToApi(coreResponse.InternalData);
            return(response);
        }
Esempio n. 2
0
        public GetEventByIdResponse GetEventById(Guid eventId)
        {
            var dataDto = new GetEventByIdRequestDtoData()
            {
                EventId = eventId
            };
            var request = new GetEventByIdRequestDto
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.GetEventById(request);
            var response    = CreateResponse <GetEventByIdResponse>(responseDto);

            response.InternalData = DataConverter.GetEventInfo(responseDto.Data);
            return(response);
        }
Esempio n. 3
0
 public GetEventByIdResponseDto GetEventById(GetEventByIdRequestDto request)
 {
     return(ExecuteAction <GetEventByIdResponseDto>("GetEventById", request));
 }