コード例 #1
0
ファイル: ApiService.cs プロジェクト: crazyants/ZidiumServer
        public GetComponentTypeResponse GetComponentType(GetComponentTypeData data)
        {
            var dataDto = new GetComponentTypeRequestDtoData()
            {
                Id         = data.Id,
                SystemName = data.SystemName
            };
            var request = new GetComponentTypeRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.GetComponentType(request);
            var response    = CreateResponse <GetComponentTypeResponse>(responseDto);

            response.InternalData = DataConverter.GetComponentTypeInfo(responseDto.Data);
            return(response);
        }