コード例 #1
0
ファイル: ApiService.cs プロジェクト: crazyants/ZidiumServer
        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);
        }