public Page Convert(ShopifyPage shopifyPage)
        {
            var retVal = new Page
            {
                ContentType = "text/html",
                Language    = "en-US",
                PageName    = string.Format("{0}.html", shopifyPage.Title),
                Updated     = shopifyPage.UpdatedAt,
                ByteContent = System.Text.Encoding.UTF8.GetBytes(shopifyPage.BodyHtml)
            };

            return(retVal);
        }
Exemplo n.º 2
0
 /// <summary>
 ///Update a page
 /// </summary>
 /// <param name="page">The page.</param>
 /// <returns></returns>
 public ShopifyPage Update(ShopifyPage page)
 {
     return(base.Update(page, (long)page.Id));
 }
Exemplo n.º 3
0
 /// <summary>
 ///Create a new page
 /// </summary>
 /// <param name="page">The page.</param>
 /// <returns></returns>
 public ShopifyPage Create(ShopifyPage page)
 {
     return(base.Create(page));
 }