Example #1
0
 private bool IsDatabaseTablesPopulated()
 {
     return(Regions.Any() && Cities.Any() && Channels.Any() && Sectors.Any() && Contacts.Any() &&
            Customers.Any() && Plants.Any() && Products.Any() && Sales.Any());
 }
        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);
        }