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); }
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); }
public GetEventByIdResponseDto GetEventById(GetEventByIdRequestDto request) { return(ExecuteAction <GetEventByIdResponseDto>("GetEventById", request)); }