public static bool DoesItNeedToBeRefreshed(int userID) { BLL.PhysicalStore phyStore = new PhysicalStore(); phyStore.LoadAll(); while (!phyStore.EOF) { BLL.UserPhysicalStore usrPhyStore = new UserPhysicalStore(); usrPhyStore.LoadAllByUserAndStoreID(userID, phyStore.ID); if (usrPhyStore.RowCount == 0) { return true; } phyStore.MoveNext(); } return false; }
public static bool DoesItNeedToBeRefreshed(int userID) { BLL.PhysicalStore phyStore = new PhysicalStore(); phyStore.LoadAll(); while (!phyStore.EOF) { BLL.UserPhysicalStore usrPhyStore = new UserPhysicalStore(); usrPhyStore.LoadAllByUserAndStoreID(userID, phyStore.ID); if (usrPhyStore.RowCount == 0) { return(true); } phyStore.MoveNext(); } return(false); }