public static UpdateItemTagDto FromItemDetail(ItemDetailDto detail) { return(new UpdateItemTagDto { Id = detail.Id }); }
public static UpdateItemDto FromItemDetail(ItemDetailDto detail) { return(new UpdateItemDto { Description = detail.Description, ItemExtendedPropertyList = new List <WriteItemExtendedPropertyDto>(detail.ItemExtendedPropertyList.Where(ep => !ep.IsSkuLevelProperty)), Id = detail.Id, Name = detail.Name, SkuId = detail.SkuId }); }
public ItemDetailDto(ItemDetailDto dto) : base(dto) { if (dto == null) { return; } var type = typeof(ItemDetailDto); var properties = type.GetTypeInfo().DeclaredProperties; foreach (var property in properties) { var value = property.GetValue(dto); property.SetValue(this, value); } }