public ProductFolder(ProductFolder ProductFolder) { Id = ProductFolder.Id; Date_Updated = ProductFolder.Date_Updated; FullyLoaded = ProductFolder.FullyLoaded; if (ProductFolder.Parent_Folder != null) { Parent_Folder = new ProductFolder(); Parent_Folder = ProductFolder.Parent_Folder; } }
public ProductFolder(ProductFolder ProductFolder) { Id = ProductFolder.Id; Date_Updated = ProductFolder.Date_Updated; FullyLoaded = ProductFolder.FullyLoaded; if (ProductFolder.Parent_Folder != null) { Parent_Folder = new ProductFolder(); Parent_Folder = ProductFolder.Parent_Folder; } }
/// <summary> /// Updates the product folder. /// </summary> /// <param name="productFolder">The product folder.</param> /// <returns>The <see cref="Task"/> containing the API response with <see cref="ProductFolder"/>.</returns> public virtual Task <ApiResponse <ProductFolder> > UpdateAsync(ProductFolder productFolder) { if (productFolder == null) { throw new ArgumentNullException(nameof(productFolder)); } var requestContext = PrepareRequestContext(method: Method.PUT, path: $"{Path}/{productFolder.Id}") .WithBody(Serialize(productFolder)); return(CallAsync <ProductFolder>(requestContext)); }