/// <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); } }
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); } }