Exemple #1
0
 public static Zidium.Core.Api.SetComponentEnableRequestData ConvertToCore(SetComponentEnableRequestDtoData data)
 {
     if (data == null)
     {
         return(null);
     }
     return(new Zidium.Core.Api.SetComponentEnableRequestData()
     {
         ComponentId = data.ComponentId
     });
 }
Exemple #2
0
        public SetComponentEnableResponse SetComponentEnable(Guid componentId)
        {
            var dataDto = new SetComponentEnableRequestDtoData()
            {
                ComponentId = componentId
            };
            var request = new SetComponentEnableRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.SetComponentEnable(request);
            var response    = CreateResponse <SetComponentEnableResponse>(responseDto);

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