bool IsDatabaseTablesPopulated() { bool hasAnyData = Regions.Any() && Cities.Any() && Channels.Any() && Sectors.Any() && Contacts.Any() && Customers.Any() && Plants.Any() && Products.Any() && Sales.Any(); bool hasActualData = Sales.Any(s => s.SaleDate.Year == DateTime.Today.Year); return(hasAnyData && hasActualData); }
private bool IsDatabaseTablesPopulated() { return(Regions.Any() && Cities.Any() && Channels.Any() && Sectors.Any() && Contacts.Any() && Customers.Any() && Plants.Any() && Products.Any() && Sales.Any()); }