public UpdateComponentResponse UpdateComponent(Guid componentId, UpdateComponentData data) { if (data == null) { throw new ArgumentNullException("data"); } var dataDto = DataConverter.GetUpdateComponentRequestDtoData(componentId, data); var request = new UpdateComponentRequestDto() { Data = dataDto, Token = GetAccessTokenDto() }; var responseDto = DtoService.UpdateComponent(request); var response = CreateResponse <UpdateComponentResponse>(responseDto); response.InternalData = DataConverter.GetComponentInfo(responseDto.Data); return(response); }