Ejemplo n.º 1
0
 /// <summary>
 /// Get next shop ID for auto update
 /// </summary>
 /// <returns></returns>
 public static int?GetAutoUpdateShopID()
 {
     DataSetTableAdapters.ShopTableAdapter shopTA = new DataSetTableAdapters.ShopTableAdapter();
     DataSet.ShopDataTable shopDT = shopTA.GetAutoUpdateShops();
     if (shopDT.Count > 0)
     {
         return(shopDT[0].ID);
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
 public static Shopify GetShopByID(int ID)
 {
     DataSetTableAdapters.ShopTableAdapter shopTA = new DataSetTableAdapters.ShopTableAdapter();
     DataSet.ShopDataTable shopDT = shopTA.GetDataByID(ID);
     if (shopDT.Count > 0)
     {
         Shopify shop = new Shopify(ID, shopDT[0].ShopifyStoreAccount, shopDT[0].ShopifyAccessToken);
         shop.data = shopDT[0];
         return(shop);
     }
     else
     {
         return(null);
     }
 }