public static Zidium.Core.Api.SetComponentDisableRequestData ConvertToCore(SetComponentDisableRequestDtoData data) { if (data == null) { return(null); } return(new Zidium.Core.Api.SetComponentDisableRequestData() { ComponentId = data.ComponentId, Comment = data.Comment, ToDate = data.ToDate }); }
public SetComponentDisableResponse SetComponentDisable(Guid componentId, DateTime?toDate, string comment) { var dataDto = new SetComponentDisableRequestDtoData() { ComponentId = componentId, ToDate = toDate, Comment = comment }; var request = new SetComponentDisableRequestDto() { Data = dataDto, Token = GetAccessTokenDto() }; var responseDto = DtoService.SetComponentDisable(request); var response = CreateResponse <SetComponentDisableResponse>(responseDto); response.InternalData = responseDto.Data; return(response); }